public void Register(GameCommandType type, GameCommandHandler handler)
        {
            List <System.Action> callbacks = null;

            if (!handlers.TryGetValue(type, out callbacks))
            {
                callbacks = handlers[type] = new List <System.Action>();
            }
            callbacks.Add(handler.OnInteraction);
        }
 public void Remove(GameCommandType type, GameCommandHandler handler)
 {
     handlers[type].Remove(handler.OnInteraction);
 }