예제 #1
0
        protected override void OnEnter(NodeData wData)
        {
            EntityWorkData workData = wData as EntityWorkData;
            //参数
            ParamData paramData = workData.GetParam();
            int       gazeUid   = paramData.GetInt();
            Vector2   gazeRange = paramData.GetVect2();
            //组件
            GazeSurroundCom gazeSurroundCom = workData.MEntity.GetCom <GazeSurroundCom>();

            gazeSurroundCom.gazeUid   = gazeUid;
            gazeSurroundCom.gazeRange = gazeRange;
            gazeSurroundCom.Enable();
        }