コード例 #1
0
        /// <summary>
        /// Queues the given action.
        /// </summary>
        /// <param name="action">The action to execute.</param>
        public void Queue(CombatAction action)
        {
            // Request the controller to attack the given target
            var queuedAction = new CombatAction.QueueEvent();

            queuedAction.Action = action;
            this.gameObject.Dispatch <CombatAction.QueueEvent>(queuedAction);
        }
コード例 #2
0
 /// <summary>
 /// Received when a combat action has been selected
 /// </summary>
 /// <param name="e"></param>
 void OnCombatActionQueuedEvent(CombatAction.QueueEvent e)
 {
     this.Activate();
 }