public override void OnEnter() { base.OnEnter(); Message m = new AnimationCommandMessage(thisObject as IMessageProcessor, thisObject as IMessageProcessor, animationCommand); AIManager.messageQueue.sendMessage(m); }
/* 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); }