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