private void Awake()
 {
     Spawner = DemoManager.Instance().RandomZoneSpawner;
     randomDirectionWithinSpawnZone = Spawner.GetRandomPointInSphere() - transform.position;
 }
Ejemplo n.º 2
0
 void OnDisable()
 {
     DemoManager.Instance().OnSpawnCubes -= UpdateAllNeighbours;
 }