Пример #1
0
        public override void OnRoundStart()
        {
            base.OnRoundStart();
            if (_effect)
            {
                _effect = false;
                SingletonBehavior <DiceEffectManager> .Instance.CreateNewFXCreatureEffect("6_G/FX_IllusionCard_6_G_Shout", 1f, this._owner.view, this._owner.view, 3f);

                CameraFilterUtil.EarthQuake(0.08f, 0.02f, 50f, 0.3f);
                SingletonBehavior <SoundEffectManager> .Instance.PlayClip("Creature/Danggo_Lv2_Shout");
            }
        }
        public void KillEffect()
        {
            CameraFilterUtil.EarthQuake(0.08f, 0.02f, 50f, 0.6f);
            Battle.CreatureEffect.CreatureEffect original = Resources.Load <Battle.CreatureEffect.CreatureEffect>("Prefabs/Battle/CreatureEffect/New_IllusionCardFX/5_T/FX_IllusionCard_5_T_SmokeWater");
            if (!((UnityEngine.Object)original != (UnityEngine.Object)null))
            {
                return;
            }
            Battle.CreatureEffect.CreatureEffect creatureEffect = UnityEngine.Object.Instantiate <Battle.CreatureEffect.CreatureEffect>(original, SingletonBehavior <BattleSceneRoot> .Instance.transform);
            if (!((UnityEngine.Object)creatureEffect?.gameObject.GetComponent <AutoDestruct>() == (UnityEngine.Object)null))
            {
                return;
            }
            AutoDestruct autoDestruct = creatureEffect?.gameObject.AddComponent <AutoDestruct>();

            if (!((UnityEngine.Object)autoDestruct != (UnityEngine.Object)null))
            {
                return;
            }
            autoDestruct.time = 3f;
            autoDestruct.DestroyWhenDisable();
        }
Пример #3
0
        public void KillEffect()
        {
            CameraFilterUtil.EarthQuake(0.18f, 0.16f, 90f, 0.45f);
            Battle.CreatureEffect.CreatureEffect original1 = Resources.Load <Battle.CreatureEffect.CreatureEffect>("Prefabs/Battle/CreatureEffect/6/Dango_Emotion_Effect");
            if ((UnityEngine.Object)original1 != (UnityEngine.Object)null)
            {
                Battle.CreatureEffect.CreatureEffect creatureEffect = UnityEngine.Object.Instantiate <Battle.CreatureEffect.CreatureEffect>(original1, SingletonBehavior <BattleSceneRoot> .Instance.transform);
                if ((UnityEngine.Object)creatureEffect?.gameObject.GetComponent <AutoDestruct>() == (UnityEngine.Object)null)
                {
                    AutoDestruct autoDestruct = creatureEffect?.gameObject.AddComponent <AutoDestruct>();
                    if ((UnityEngine.Object)autoDestruct != (UnityEngine.Object)null)
                    {
                        autoDestruct.time = 3f;
                        autoDestruct.DestroyWhenDisable();
                    }
                }
            }
            Battle.CreatureEffect.CreatureEffect original2 = Resources.Load <Battle.CreatureEffect.CreatureEffect>("Prefabs/Battle/CreatureEffect/7/Lumberjack_final_blood_1st");
            if (!((UnityEngine.Object)original2 != (UnityEngine.Object)null))
            {
                return;
            }
            Battle.CreatureEffect.CreatureEffect creatureEffect1 = UnityEngine.Object.Instantiate <Battle.CreatureEffect.CreatureEffect>(original2, SingletonBehavior <BattleSceneRoot> .Instance.transform);
            if (!((UnityEngine.Object)creatureEffect1?.gameObject.GetComponent <AutoDestruct>() == (UnityEngine.Object)null))
            {
                return;
            }
            AutoDestruct autoDestruct1 = creatureEffect1?.gameObject.AddComponent <AutoDestruct>();

            if (!((UnityEngine.Object)autoDestruct1 != (UnityEngine.Object)null))
            {
                return;
            }
            autoDestruct1.time = 3f;
            autoDestruct1.DestroyWhenDisable();
        }
        public override void OnRoundStart()
        {
            this._owner.bufListDetail.AddBuf(new Indicator(absorption));
            MoutainCorpse moutain = new MoutainCorpse(count);

            this._owner.bufListDetail.AddBuf(moutain);
            this._owner.view.ChangeHeight((int)((double)height * (1 + (double)moutain.stack * 0.25)));
            if (count > 5)
            {
                PlatformManager.Instance.UnlockAchievement(AchievementEnum.ONCE_FLOOR6);
            }
            if (!this._effect)
            {
                this._effect = true;
                CameraFilterUtil.EarthQuake(0.18f, 0.16f, 90f, 0.45f);
                Battle.CreatureEffect.CreatureEffect original1 = Resources.Load <Battle.CreatureEffect.CreatureEffect>("Prefabs/Battle/CreatureEffect/6/Dango_Emotion_Effect");
                if ((UnityEngine.Object)original1 != (UnityEngine.Object)null)
                {
                    Battle.CreatureEffect.CreatureEffect creatureEffect1 = UnityEngine.Object.Instantiate <Battle.CreatureEffect.CreatureEffect>(original1, SingletonBehavior <BattleSceneRoot> .Instance.transform);
                    Battle.CreatureEffect.CreatureEffect creatureEffect2 = UnityEngine.Object.Instantiate <Battle.CreatureEffect.CreatureEffect>(original1, SingletonBehavior <BattleSceneRoot> .Instance.transform);
                    Battle.CreatureEffect.CreatureEffect creatureEffect3 = UnityEngine.Object.Instantiate <Battle.CreatureEffect.CreatureEffect>(original1, SingletonBehavior <BattleSceneRoot> .Instance.transform);
                    if ((UnityEngine.Object)creatureEffect1?.gameObject.GetComponent <AutoDestruct>() == (UnityEngine.Object)null)
                    {
                        AutoDestruct autoDestruct = creatureEffect1?.gameObject.AddComponent <AutoDestruct>();
                        if ((UnityEngine.Object)autoDestruct != (UnityEngine.Object)null)
                        {
                            autoDestruct.time = 3f;
                            autoDestruct.DestroyWhenDisable();
                        }
                    }
                    if ((UnityEngine.Object)creatureEffect2?.gameObject.GetComponent <AutoDestruct>() == (UnityEngine.Object)null)
                    {
                        AutoDestruct autoDestruct = creatureEffect2?.gameObject.AddComponent <AutoDestruct>();
                        if ((UnityEngine.Object)autoDestruct != (UnityEngine.Object)null)
                        {
                            autoDestruct.time = 3f;
                            autoDestruct.DestroyWhenDisable();
                        }
                    }
                    if ((UnityEngine.Object)creatureEffect3?.gameObject.GetComponent <AutoDestruct>() == (UnityEngine.Object)null)
                    {
                        AutoDestruct autoDestruct = creatureEffect3?.gameObject.AddComponent <AutoDestruct>();
                        if ((UnityEngine.Object)autoDestruct != (UnityEngine.Object)null)
                        {
                            autoDestruct.time = 3f;
                            autoDestruct.DestroyWhenDisable();
                        }
                    }
                }
                Battle.CreatureEffect.CreatureEffect original2 = Resources.Load <Battle.CreatureEffect.CreatureEffect>("Prefabs/Battle/CreatureEffect/7/Lumberjack_final_blood_1st");
                if ((UnityEngine.Object)original2 != (UnityEngine.Object)null)
                {
                    Battle.CreatureEffect.CreatureEffect creatureEffect1 = UnityEngine.Object.Instantiate <Battle.CreatureEffect.CreatureEffect>(original2, SingletonBehavior <BattleSceneRoot> .Instance.transform);
                    Battle.CreatureEffect.CreatureEffect creatureEffect2 = UnityEngine.Object.Instantiate <Battle.CreatureEffect.CreatureEffect>(original2, SingletonBehavior <BattleSceneRoot> .Instance.transform);
                    Battle.CreatureEffect.CreatureEffect creatureEffect3 = UnityEngine.Object.Instantiate <Battle.CreatureEffect.CreatureEffect>(original2, SingletonBehavior <BattleSceneRoot> .Instance.transform);
                    if ((UnityEngine.Object)creatureEffect1?.gameObject.GetComponent <AutoDestruct>() == (UnityEngine.Object)null)
                    {
                        AutoDestruct autoDestruct = creatureEffect1?.gameObject.AddComponent <AutoDestruct>();
                        if ((UnityEngine.Object)autoDestruct != (UnityEngine.Object)null)
                        {
                            autoDestruct.time = 3f;
                            autoDestruct.DestroyWhenDisable();
                        }
                    }
                    if ((UnityEngine.Object)creatureEffect2?.gameObject.GetComponent <AutoDestruct>() == (UnityEngine.Object)null)
                    {
                        AutoDestruct autoDestruct = creatureEffect2?.gameObject.AddComponent <AutoDestruct>();
                        if ((UnityEngine.Object)autoDestruct != (UnityEngine.Object)null)
                        {
                            autoDestruct.time = 3f;
                            autoDestruct.DestroyWhenDisable();
                        }
                    }
                    if ((UnityEngine.Object)creatureEffect3?.gameObject.GetComponent <AutoDestruct>() == (UnityEngine.Object)null)
                    {
                        AutoDestruct autoDestruct = creatureEffect3?.gameObject.AddComponent <AutoDestruct>();
                        if ((UnityEngine.Object)autoDestruct != (UnityEngine.Object)null)
                        {
                            autoDestruct.time = 3f;
                            autoDestruct.DestroyWhenDisable();
                        }
                    }
                }
                this.MakeEffect("6/Dango_Emotion_Spread", target: this._owner);
                SoundEffectPlayer.PlaySound("Creature/Danggo_LvUp");
                SoundEffectPlayer.PlaySound("Creature/Danggo_Birth");
            }
        }