private void Awake() { useGUILayout = false; lock (LockObj) { if (instance == null) instance = this; } }
private static InputHandler CreateInstance() { lock (LockObj) { return instance ?? (instance = new GameObject("_InputHandler").AddComponent<InputHandler>()); } }