void OnEndController() { if (!dialog.IsShowingText()) { if (Input.GetMouseButtonDown(0)) { if (loser == WhichSide.Left) { if (!rightGeneral.IsDead()) { SelectGeneralToWarController.warResult = 0; } else { SelectGeneralToWarController.warResult = 2; } } else if (loser == WhichSide.Right) { if (!leftGeneral.IsDead()) { SelectGeneralToWarController.warResult = 1; } else { SelectGeneralToWarController.warResult = 2; } } Time.timeScale = 1; Application.LoadLevel("SelectGeneralToWar"); } } }