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