// ------------------------------------ // // --- Commands and Command Routing --- // // ------------------------------------ // public void RunCommand(LagObject command) { switch (command.GetCommand()) { case "move right": MoveRight(); break; case "move left": MoveLeft(); break; case "jump": Jump(); break; } }
// Use this to delay an action made by the player public void AddNewCommand(LagObject newLagObject) { commandList.Add(newLagObject); }