Esempio n. 1
0
 protected void Start()
 {
     audioSource = GetComponent <AudioSource>();
     animation   = GetComponent <Animation>();
     onGameEnd.Register(OnGameEnd);
     cachedGameFlow = GameFlowController.Instance;
     restartButton.SetActive(false);
     continueButton.SetActive(true);
 }
Esempio n. 2
0
 protected void Start()
 {
     cachedGameFlow = GameFlowController.Instance;
     onBlowStatusChanged.Register(OnBlowStatusChange);
     Countdown.Instantiate(3, "GO!", 1.0f, () => { isGamePaused = false; Debug.Log("GO!!!"); });
 }
Esempio n. 3
0
 private void Awake()
 {
     onGameEnd.Register(OnGameEnd);
     lungs = GetComponentsInChildren <Image>();
 }