private void Awake() { Instance = this; playerArrivedToBoss = false; isAlive = true; modalPanel = ModalPanel.Instance(); initialTime = timer; // TODO : enable this line to remove cursor in scene. // Cursor.visible = false; resetLevelAction = new UnityAction(RestartLevel); resetFromBossAction = new UnityAction(RestartAtBoss); optionsAction = new UnityAction(Options); returnMenuAction = new UnityAction(ReturnToMenu); Time.timeScale = 1; playerController = player.GetComponent<XurController>(); levelTheme = GetComponent<AudioSource>(); timerProgress = timerContainer.GetComponent<TimerProgressBar>(); //timerProgress.Value = 100; xurHasArrived = false; timerProgress.SetTimerValue(100f); }
// Use this for initialization private void Start() { playerController = player.GetComponent<XurController>(); paused = false; StartLevelTheme(); }
private void Start() { playerController = player.GetComponent<XurController>(); cam = Camera.main; }