コード例 #1
0
        public void OnRabbitDeath(HeroRabbit heroRabbit)
        {
            if (heroRabbit.IsGrewUp())
            {
                heroRabbit.GrowDown();
            }
            else
            {
                --_lifesLeft;
                heroRabbit.Kill(LifesCount == -1 || _lifesLeft > 0);
            }

            UpdateContainers();
        }