Пример #1
0
        public override void Init()
        {
            base.Init();

            if (m_rec == null)
            {
                return;
            }

            switch (m_buffData.ParamValue1)
            {
            case (int)eBuffState.stun:
            case (int)eBuffState.WindBlowsUp:
                //Debug.Log("晕眩,添加特效");
                SetStopMove(m_rec);
                SetStopSkill(m_rec);
                break;

            case (int)eBuffState.silent:
                Debug.Log("沉默");
                break;

            case (int)eBuffState.God:
                //Debug.Log("无敌");
                break;

            case (int)eBuffState.unmove:
                SetStopMove(m_rec);
                break;

            case (int)eBuffState.sleep:
                SetStopMove(m_rec);
                SetStopSkill(m_rec);
                break;
            }

            m_rec.SetState((eBuffState)m_buffData.ParamValue1, true);

            //ride = m_rec.GetRide();
            if (ride != null)
            {
                ride.SetState((eBuffState)m_buffData.ParamValue1, true);
            }
            UpdateVO_HitAnima(m_rec, m_buffData.animaId);
        }