private void StartGame() { AudioManager.Instance.PlaySwooshing(); UIManager.Instance.Show(UIType.PlayingPanel); UIManager.Instance.Hide(UIType.StartPanel); StateControl.SetState(StateType.Ready); }
private void OnReplayButtonClick() { AudioManager.Instance.PlaySwooshing(); UIManager.Instance.Show(UIType.PlayingPanel); UIManager.Instance.Hide(UIType.EndingPanel); StateControl.SetState(StateType.Ready); }
public void SetBirdGround() { if (!IsBirdDie) { BirdDie(); } IsBirdGround = true; StateControl.SetState(StateType.GameOver); }
private void Awake() { StateControl.SetState(StateType.Start); UIManager.Instance.Show(UIType.StartPanel); }
private void OnReadyClick() { _readyButton.enabled = false; StateControl.SetState(StateType.Playing); DoFade(false, _uiAnimationFadeTime); }