Example #1
0
 private void Awake()
 {
     if (instance != null)
     {
         Destroy(this);
     }
     instance = this;
 }
Example #2
0
 void Awake()
 {
     if (instance != null)
     {
         //Destroy (this.gameObject);
         return;
     }
     instance = this;
     DontDestroyOnLoad(gameObject);
 }
Example #3
0
 private void OnEnable()
 {
     vibManager = (VibManager)target;
 }
Example #4
0
 private void OnEnable()
 {
     vibManager = (VibManager)target;
     EnumerizeKeys();
 }