コード例 #1
0
 private void Awake()
 {
     instance = this;
     spawnButton.onClick.AddListener(Spawn);
 }
コード例 #2
0
 private void Awake()
 {
     Spawner = DemoManager.Instance().RandomZoneSpawner;
     randomDirectionWithinSpawnZone = Spawner.GetRandomPointInSphere() - transform.position;
 }
コード例 #3
0
 void OnDisable()
 {
     DemoManager.Instance().OnSpawnCubes -= UpdateAllNeighbours;
 }