Пример #1
0
 void Awake()
 {
     if (instance)
     {
         Debug.LogError("ToughToMouseConverter class is Singleton. use GetInstance()");
         return;
     }
     instance = this;
 }
 void Awake()
 {
     if (instance)
     {
         Debug.LogError("ToughToMouseConverter class is Singleton. use GetInstance()");
         return;
     }
     instance = this;
 }