public void onCommand(Command command, Time dt) { if (command.category == getCategory()) { command.actionfunc(this, dt); } foreach (SceneNode child in mChildren) { child.onCommand(command, dt); } }
//public methods public void push(Command command) { mQueue.Enqueue(command); }