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);
        }
    }
Example #2
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);
        }
    }