Пример #1
0
    private void SelectActiveUnit(USquareGridSquare us)
    {
        USquareGridUnit unit;

        if (us == null)
        {
            return;
        }

        this.UISquareSelected(us);

        unit = (USquareGridUnit)us.GetUnit();
        if ((unit != null) && (this.game.UActiveUnit == unit))
        {
            this.ui_mgr.unit_action_panel.SetActive(true);
            this.ui_mgr.SelectedActiveUnit(unit);
        }

        this.select_context.SelectActiveUnit(us);
    }
Пример #2
0
 private void UISquareSelected(USquareGridSquare us)
 {
     this.ui_mgr.SelectedSquare(us);
     this.ui_mgr.SelectedUnit((USquareGridUnit)us.GetUnit());
 }