2 working sounds, updated scripts, fmod events
This commit is contained in:
@@ -18,7 +18,7 @@ public class SpaceEnterCollider : MonoBehaviour
|
||||
{
|
||||
InstructionText.transform.rotation = Quaternion.Euler(0f, 0f, 0f);
|
||||
//Debug.Log("Instruction text rotation" + InstructionText.transform.rotation);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
InstructionText.transform.rotation = Quaternion.Euler(0f, 0f, -180f);
|
||||
@@ -31,6 +31,7 @@ public class SpaceEnterCollider : MonoBehaviour
|
||||
playerGravity.isInSpace = true;
|
||||
}
|
||||
Debug.Log(other + " entered space.");
|
||||
AudioManager.Instance.PlayAttachedInstance(FMODEvents.Instance.PortalEnter, gameObject);
|
||||
}
|
||||
|
||||
private void OnTriggerExit(Collider other)
|
||||
@@ -52,5 +53,6 @@ public class SpaceEnterCollider : MonoBehaviour
|
||||
yield return new WaitForSeconds(1f); // Wait for 1 second
|
||||
playerGravity.isInSpace = false;
|
||||
Debug.Log("Default gravity restored after 1 second.");
|
||||
AudioManager.Instance.PlayAttachedInstance(FMODEvents.Instance.PortalEnter, gameObject);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user