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