Adding server room sound effects and button to trigger them

This commit is contained in:
Ranno Samuel Adson
2025-01-02 16:37:16 +02:00
parent de968605ec
commit 98094a9f5f
22 changed files with 574 additions and 6 deletions

View File

@@ -67,10 +67,10 @@ public class StencilPortal : MonoBehaviour
private void OnTriggerExit(Collider other)
{
if (!_shouldTeleport || IsInvoking(nameof(AllowTeleport))) return;
/*if (!_shouldTeleport || IsInvoking(nameof(AllowTeleport))) return;
if (!other.CompareTag("Player")) return;
Debug.Log(transform.name + " player exited");
Invoke(nameof(AllowTeleport), 1f);
Invoke(nameof(AllowTeleport), 1f);*/
}
private void AllowTeleport()