Пример #1
0
        private void OnCollisionEnter(Collision other)
        {
            if (!other.collider.gameObject.CompareTag("DeathFloor"))
            {
                return;
            }

            _playerLives.Die();

            Debug.Log("Health: " + vitals.currentHealth);

            //respawn player
            _playerLives.RespawnPlayer();
        }