Пример #1
0
	protected void Awake()
	{
		if (ArcReactor_Manager.Instance == null)
			Instance = this;
		else
		{
			Debug.LogError("More than one instance of ArcReactor_Manager is active. Disabling additional instance");
			this.enabled = false;
		}
	}
Пример #2
0
 protected void Awake()
 {
     if (ArcReactor_Manager.Instance == null)
     {
         Instance = this;
     }
     else
     {
         Debug.LogError("More than one instance of ArcReactor_Manager is active. Disabling additional instance");
         this.enabled = false;
     }
 }