예제 #1
0
 void Update()
 {
     if (MyModel != null && EnemysModel != null && (MyModel.ActualHealth <= 0 || EnemysModel.ActualHealth <= 0))
     {
         PanelInformation.GetComponent <PanelInformation>().SetText((MyModel.ActualHealth > 0 ? "You won" : "You lost"));
     }
 }
예제 #2
0
 public void EndTurn()
 {
     if (Mode != Mode.Ready)
     {
         PanelInformation.GetComponent <PanelInformation>().SetText("Finish " + Mode + " first.");
     }
     else
     {
         StartCoroutine(EndTurnCoroutine());
     }
 }