private void OnTriggerEnter(Collider other) { if (Utilities.ContainsLayer(triggerMask, other.gameObject.layer)) { destroyBehaviour.Destroy(); } }
protected override void React(Collider other) { destroyBehaviour.Destroy(); }
public void Die() { SpawnExplosionParticles(); destroyBehaviour.Destroy(); }
protected virtual void Die() { spawnGameObjectBehaviour.Spawn(explosionPrefab, transform.position, transform.rotation); destroyBehaviour.Destroy(); }