private void OnTriggerEnter(Collider other)
 {
     if (Utilities.ContainsLayer(triggerMask, other.gameObject.layer))
     {
         destroyBehaviour.Destroy();
     }
 }
Exemple #2
0
 protected override void React(Collider other)
 {
     destroyBehaviour.Destroy();
 }
    public void Die()
    {
        SpawnExplosionParticles();

        destroyBehaviour.Destroy();
    }
Exemple #4
0
    protected virtual void Die()
    {
        spawnGameObjectBehaviour.Spawn(explosionPrefab, transform.position, transform.rotation);

        destroyBehaviour.Destroy();
    }