private void Awake()
 {
     if (instance != null)
     {
         Debug.LogError("More than one MainThread in the scene");
     }
     else
     {
         instance = this;
     }
 }
Esempio n. 2
0
 void Start()
 {
     Instance = this;
 }