Ejemplo n.º 1
0
    public void Awake()
    {
        if (instance != null)
        {
            throw new System.Exception("There can only be one InputManager instance! Please remove any duplicates.");
        }

        instance = this;

        // Reset callbacks to prevent old scenes from still being called
        callbacks = null;
    }
Ejemplo n.º 2
0
 public static void AddCallback(InputCallbackDelegate callbackDelegate)
 {
     callbacks += callbackDelegate;
 }