public static void defenceClick(bool value, int region) { isDefenceClicked = value; heroDefRegion = region; BattleEventController.isBoth(); Debug.Log("Event defenceClick created, isDefenceCliked = " + isDefenceClicked); Debug.Log("BattleEventController. defenceClick. region = " + heroDefRegion); }
public static void attackClick(bool value, int region) { isAttackClicked = value; heroAttackRegion = region; BattleEventController.isBoth(); Debug.Log("Event attackClick created, isAttackCliked = " + isAttackClicked); Debug.Log("BattleEventController. attackClick. region = " + heroAttackRegion); }
public void isBoth() { if (BattleEventController.isBoth()) { gameObject.GetComponent <Button> ().interactable = true; } else { gameObject.GetComponent <Button> ().interactable = false; } }