public void SetCombatant(Combatant combatant) { Debug.Log("setting combant -" + combatant + "-"); this.combatant = combatant; leftPane = CharacterPane.FindLeftPane(); EnablePane(); }
public void SetCombatant(Combatant combatant) { this.combatant = combatant; leftPane = CharacterPane.FindLeftPane(); EnablePane(); CreateBattleOrder(); }
void SetupCharacterPanes() { if (!order.Action.Equals("move")) { leftPane = CharacterPane.FindLeftPane(); rightPane = CharacterPane.FindRightPane(); leftPane.gameObject.SetActive(true); rightPane.gameObject.SetActive(true); leftPane.Populate(order.SourceCombatant); if (order.TargetTile.GetOccupant() != null && order.TargetTile.GetOccupant().Stats.HasStatus("dead") && order.Action.Equals("attack")) { rightPane.Populate(null); } else { rightPane.Populate(order.TargetTile.GetOccupant()); } centerPane = CombatPane.FindCenterPane(); centerPane.gameObject.SetActive(true); centerPane.Populate(order); } }