private float m_timer; // Keep track of time between ball drop fails // Use this for initialization void Start() { // Make the script a singleton if (s_Instance == null) { s_Instance = this; m_Manager = IntroSessionManager.s_Instance; m_RaycasterScript = IntroSessionManager.s_RaycasterScript; m_timer = 0; // Spawn a ball for the user m_Manager.SpawnNewBall(); // Display text and playback audio for dialogue, then wait for the audio to finish before continuing m_Manager.GlobalMessage(m_DialogueInstructions.DialogueElements[0]); // Open the trap door and reset the timer Debug.Log("STAGE4 CALLING OPENING SLIDING DOORS"); m_Manager.OpenSlidingDoors(); } else { Destroy(gameObject); } }