Exemplo n.º 1
0
        private void OnTriggerEnter(Collider other)
        {
            if (other.CompareTag("Boundary") || other.CompareTag("Enemy"))
            {
                return;
            }


            if (other.CompareTag("LeftWall"))
            {
                WaveService.Side = GoSide.Left;
                return;
            }

            if (other.CompareTag("RightWall"))
            {
                WaveService.Side = GoSide.Right;
                return;
            }

            if (!other.CompareTag("PlayerBolt"))
            {
                return;
            }
            OnDeathEnemy?.Invoke(other);
        }
Exemplo n.º 2
0
 private void NotifyOnEnemyDeath()
 {
     OnDeathEnemy?.Invoke(this);
 }