using System.Collections; using System.Collections.Generic; using UnityEngine; public class DebugConsole : MonoBehaviour { private Dictionary Actions = new Dictionary(); /// /// Adds a command to be used in the console. /// /// The command template that should be used. /// eg. "print (text)" or "add (number) (number)" /// Description. /// Action. public void AddCommand(string command, string description, DebugConsoleAction.Action action) { Actions[command] = new DebugConsoleAction(description, action); } }