Пример #1
0
        public void SetActiveAction(BaseActiveAction activeAction, bool building)
        {
            //has an old action?
            if (_action != null)
            {
                _action.Remove();
            }

            _action = activeAction;

            if (building)
            {
                buildingUI.SetActiveAction(activeAction);
                return;
            }

            unitUI.SetActiveAction(activeAction);
        }