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