Exemplo n.º 1
0
        public override void OnEnter()
        {
            base.OnEnter();
            Message m = new AnimationCommandMessage(thisObject as IMessageProcessor, thisObject as IMessageProcessor, animationCommand);

            AIManager.messageQueue.sendMessage(m);
        }
Exemplo n.º 2
0
        /*  Assumes message is AnimationCommandMessage
         *  (safe as long as it's only for transitions with that message type,
         *  any thing else doesn't make sense)
         */
        public bool thisCommand(Message msg, object obj)
        {
            AnimationCommandMessage m = msg as AnimationCommandMessage;

            return(command == m.command);
        }