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