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