private void Awake()
 {
     instance = this;
     spawnButton.onClick.AddListener(Spawn);
 }
 private void Awake()
 {
     Spawner = DemoManager.Instance().RandomZoneSpawner;
     randomDirectionWithinSpawnZone = Spawner.GetRandomPointInSphere() - transform.position;
 }
Esempio n. 3
0
 void OnDisable()
 {
     DemoManager.Instance().OnSpawnCubes -= UpdateAllNeighbours;
 }