/// <summary> /// Notifies the spawn volume parent upon collision /// which collider was hit and whether it should be disabled. /// </summary> void OnTriggerEnter(Collider other) { if (other.gameObject.CompareTag("SpawnSignal")) { spawnVolume.UpdateSpawnVolume(center, false); } if (other.gameObject.CompareTag("Player")) { spawnVolume.UpdateSpawnVolume(center, true); } }