private void Awake() { if (Instance == null) { Instance = this; } else { Destroy(this); return; } planetUnlocker = GetComponent <PlanetUnlocker>(); LoadSymbols(); }
private void Awake() { if (Instance == null) { Instance = this; } else { Destroy(gameObject); return; } planetUnlocker = GetComponent <PlanetUnlocker>(); planetPrefabs = GetComponent <PlanetPrefabHandler>(); player = FindObjectOfType <Player>(); inputHandler = new InputHandler(this); state = States.Playing; }