示例#1
0
        public override Status Process()
        {
            ActivateIfInactive();

            targetHive.AddResources(load.Load);
            load.Clear();
            // FIXME: this is not very nice: it'd be better if UIController
            // updated by itself (maybe via an event?)
            if (agent.GetComponent <Selectable>().IsSelected)
            {
                UIController.Instance.SetBeeLoadText(agent);
            }
            status = Status.Completed;

            return(status);
        }