void Awake() { middlePoint = DisplayMetricsAndroid.WidthPixels / 2; brunoController = bruno.GetComponent <BrunoController>(); spawner = levelSpawner.GetComponent <LevelBlockSpawner>(); waitingToStart = !spawner.isSpawnLevel; pauseScript = pauseScreen.GetComponent <PauseScript>(); Debug.Log("Bruno controls on awake"); }
void Awake() { if (Instance != null) { Debug.LogError("Multiple instances of LevelBlockSpawner"); } Instance = this; }