Beispiel #1
0
        //public Request RequestLie(EReqType type, params object[] objs)
        //{
        //    Request request = null;
        //    switch (type)
        //    {
        //        case EReqType.Idle:
        //            request = new RQIdle(objs);
        //            break;
        //        default:
        //            return null;
        //    }

        //    if (!CalculateRelation(request))
        //        return null;

        //    AddRequestMul(request);
        //    return request;
        //}

        public override void Start()
        {
            base.Start();

            //m_Behave = GetComponent<BehaveCmpt>();
            m_View = GetComponent <ViewCmpt>();
        }
        void Start()
        {
            if (!m_Init)
            {
                InitSkEntity();
            }

            Entity.AddMsgListener(this);

            m_CollisionEntities = new Dictionary <Collider, List <Collider> >();

            m_View        = Entity.viewCmpt;
            m_Trans       = Entity.peTrans;
            m_Animator    = Entity.animCmpt;
            m_Beat        = Entity.GetCmpt <Motion_Beat>();
            m_MotionMgr   = Entity.motionMgr;
            m_MotionEquip = Entity.GetCmpt <Motion_Equip>();
            m_Live        = Entity.GetCmpt <Motion_Live>();
            onHpChange   += OnHpChange;
            onSkillEvent += OnTargetSkill;
            onTranslate  += OnTranslate;
            Invoke("CheckInitAttr", 0.5f);
        }