Esempio n. 1
0
        protected override void SetDeathState()
        {
            SetState(AnimalStates.Death4Legs);
            if (!string.IsNullOrEmpty(DeadSoundName))
            {
                SoundManager.PlaySFX(DeadSoundName);
            }

            GameCenterManager.ProgressAchievement(GameCenterManager.AchProfessionalHunterId);
            GooglePlayServicesController.ProgressAchievement(GPGSIds.achievement_professional_hunter, 1);
        }
Esempio n. 2
0
        public void Fire()
        {
            if (HasWood())
            {
                IsBurning        = true;
                _currentBurnTime = 0.0f;
                SmokeParticles.Play();
                LightGameObject.SetActive(true);
                FireSound.Play();

                GameCenterManager.ProgressAchievement(GameCenterManager.AchEarnerFireId);
                GooglePlayServicesController.Unlock(GPGSIds.achievement_earner_fire);
            }
        }
Esempio n. 3
0
        protected virtual void SetDeathState()
        {
            SetState(AnimalStates.Death);
            if (!string.IsNullOrEmpty(DeadSoundName))
            {
                SoundManager.PlaySFX(DeadSoundName);
            }

            if (AnimalType == AnimalType.Deer)
            {
                GameCenterManager.ProgressAchievement(GameCenterManager.AchBeginnerHunterId);
                GooglePlayServicesController.ProgressAchievement(GPGSIds.achievement_beginner_hunter);
            }
            else if (AnimalType == AnimalType.Rabbit)
            {
                GameCenterManager.ProgressAchievement(GameCenterManager.AchRabbitLoverId);
                GooglePlayServicesController.ProgressAchievement(GPGSIds.achievement_rabbit_lover);
            }
        }