Example #1
0
    // ------------------------------------ //
    // --- 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;
        }
    }
Example #2
0
 // Use this to delay an action made by the player
 public void AddNewCommand(LagObject newLagObject)
 {
     commandList.Add(newLagObject);
 }