예제 #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;
    }
예제 #2
0
 public static void AddCallback(InputCallbackDelegate callbackDelegate)
 {
     callbacks += callbackDelegate;
 }