示例#1
0
    public void SetCombatant(Combatant combatant)
    {
        Debug.Log("setting combant -" + combatant + "-");
        this.combatant = combatant;

        leftPane = CharacterPane.FindLeftPane();
        EnablePane();
    }
示例#2
0
    public void SetCombatant(Combatant combatant)
    {
        this.combatant = combatant;

        leftPane = CharacterPane.FindLeftPane();
        EnablePane();
        CreateBattleOrder();
    }
示例#3
0
    public void SetCombatant(Combatant combatant)
    {
        this.combatant = combatant;

        leftPane = CharacterPane.FindLeftPane();
        EnablePane();
        CreateBattleOrder();
    }
示例#4
0
    public void SetCombatant(Combatant combatant)
    {
        Debug.Log("setting combant -" + combatant + "-");
        this.combatant = combatant;

        leftPane = CharacterPane.FindLeftPane();
        EnablePane();
    }
    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);
        }
    }
示例#6
0
    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);
        }
    }