コード例 #1
0
 public void RemoveListeners()
 {
     OnClickUnit = delegate { };
     foreach (UnitUI u in _units)
     {
         u.RemoveListeners();
     }
 }
コード例 #2
0
    void _selectUnit(Player p, UIUnitTypeIndexCallback next)
    {
        _BattleUnitPositionManager.ShowUnitSelectionUI(UnitSelection.Active);
        UIPlayerUnitTypeIndexCallback selectUnit = null;

        selectUnit = (PlayerType PlayerType, UnitType ut, int i) => {
            _BattleUnitPositionManager._ArmyUI.OnClickUnit -= selectUnit;
            _BattleUnitPositionManager.HideUnitSelectionUI();
            next(ut, i);
        };
        _BattleUnitPositionManager._ArmyUI.OnClickUnit += selectUnit;
    }
コード例 #3
0
ファイル: BattleManager.cs プロジェクト: EpicPants90/ELB
	void _selectUnit(Player p, UIUnitTypeIndexCallback next) {
		_BattleUnitPositionManager.ShowUnitSelectionUI(UnitSelection.Active);
		UIPlayerUnitTypeIndexCallback selectUnit = null;
		selectUnit = (PlayerType PlayerType, UnitType ut, int i) => {
			_BattleUnitPositionManager._ArmyUI.OnClickUnit -= selectUnit;
			_BattleUnitPositionManager.HideUnitSelectionUI();
			next(ut, i);
		};
		_BattleUnitPositionManager._ArmyUI.OnClickUnit += selectUnit;
	}