public void ExecuteCommand() { //if (Input.GetKeyDown(KeyCode.A)) //{ // Debug.Log("Left"); //} //else if (Input.GetKeyDown(KeyCode.D)) //{ // Debug.Log("Right"); //} CommandLog.commands.Enqueue(m_Command); m_Command.execute(); }