public void Update() { currentCommand = new NullCommand(); keyboardState = Keyboard.GetState(); foreach (Keys key in commandLibrabry) { currentCommand = commandLibrabry[key]; currentCommand.Execute(); } teno.Idle(); }
public void Update() { currentCommand = new NullCommand(); keyboardState = Keyboard.GetState(); foreach (Keys key in keyboardState.GetPressedKeys()) { if (commandLibrabry.ContainsKey(key)) { currentCommand = commandLibrabry[key]; currentCommand.Execute(); } } teno.Idle(); }
public void Execute() { teno.Idle(); }