コード例 #1
0
        protected override void ProcessRunState(AnimatorStateInfo stateInfo)
        {
            base.ProcessRunState(stateInfo);
            _footSmokeEffect.transform.position = MeControler.transform.position;
            _footSmokeEffect.transform.rotation = MeControler.transform.rotation;
            _footSmokeEffect.SetActive(true);
            if (display.controler.MeControler.IsPressedMoveButton || NGUIJoystick.IsPressed)
            {
                _autoMoveTime = 0;
            }
            else
            {
                _autoMoveTime += Time.deltaTime;
            }
            if (_autoMoveTime > 1)
            {
                AutoRoundEffect.transform.position = MeControler.transform.position + new Vector3(0, _roleHeiht + 1f, 0);
                AutoRoundEffect.transform.rotation = MeControler.transform.rotation;

                if (AppMap.Instance.mapParser.MapVo.type == MapTypeConst.CITY_MAP)
                {
                    AutoRoundEffect.SetActive(true);
                }
            }
            else
            {
                AutoRoundEffect.SetActive(false);
            }
        }
コード例 #2
0
        protected override void DoStatuTransfered()
        {
            base.DoStatuTransfered();
            if (PreStatuNameHash == Status.NAME_HASH_DEATH)
            {
                if (AppMap.Instance.mapParser.MapId == MapTypeConst.WORLD_BOSS) //世界Boss
                {
                    Singleton <BossTips> .Instance.OpenYDView(BossMode.Instance.BossName, 20, Singleton <RoleMode> .Instance.ReLife);
                }
                else if (AppMap.Instance.mapParser.MapId != MapTypeConst.ARENA_MAP &&
                         AppMap.Instance.mapParser.MapId != MapTypeConst.GoldHit_MAP &&
                         AppMap.Instance.mapParser.MapId != MapTypeConst.GoldSilverIsland_MAP)    //普通副本地图时
                {
                    if (SpeechMgr.Instance.IsAssassinSpeech)
                    {
                        SpeechMgr.Instance.PlaySpeech(SpeechConst.AssassinDead);
                    }

                    Singleton <CopyControl> .Instance.OpenCopyFailView((int)CopyFailReason.DEATH);
                }
                else if (AppMap.Instance.mapParser.MapId == MapTypeConst.GoldHit_MAP)
                {
                    Singleton <GoldHitMainView> .Instance.OpenFailPannel();
                }
            }
            else if (PreStatuNameHash == Status.NAME_HASH_STANDUP)
            {
                //显示复活无敌特效
            }
            else if (PreStatuNameHash == Status.NAME_HASH_RUN)
            {
                AutoRoundEffect.SetActive(false);
            }
            else if (PreStatuNameHash == Status.NAME_HASH_Win)
            {
                CameraEffectManager.ScaleInCamera(0.05f, MyCamera.MainCameraSize);
            }

            _autoMoveTime = 0;
        }