Пример #1
0
    void OnTriggerEnter2D(Collider2D collider)
    {
        HeroRabbit rabbit = collider.GetComponent <HeroRabbit> ();

        if (rabbit != null)
        {
            rabbit.playMusicOnDeath();
            LevelController.current.onRabbitDeath(rabbit);
        }
    }