Exemple #1
0
 private void OnTriggerExit2D(Collider2D collider)
 {
     if (BirdController.instance.currentState != State.Die)
     {
         playUI = UIManager.instance.uiBase[UIPanel.PlayUI] as PlayUIPanel;
         BirdController.instance.smooth = 0;
         playUI.Die();
     }
 }
Exemple #2
0
 private void Awake()
 {
     playUI = GameObject.Find("PlayUIPanel").GetComponent <PlayUIPanel>();
 }