Ejemplo n.º 1
0
 public void ClearShowTargetInfo()
 {
     if (this.showInfoTargetID != 0u)
     {
         if (ActorHelper.IsHostActor(ref this.actorPtr))
         {
             SelectTargetEventParam selectTargetEventParam = new SelectTargetEventParam(this.showInfoTargetID);
             Singleton <GameSkillEventSys> .GetInstance().SendEvent <SelectTargetEventParam>(GameSkillEventDef.Event_ClearTarget, base.GetActor(), ref selectTargetEventParam, GameSkillEventChannel.Channel_HostCtrlActor);
         }
         this.showInfoTargetID = 0u;
     }
 }
Ejemplo n.º 2
0
 public void SetCommonAttackTarget(uint _targetID)
 {
     if (this.commonAttackTargetID != _targetID)
     {
         this.commonAttackTargetID = _targetID;
         if (ActorHelper.IsHostActor(ref this.actorPtr))
         {
             SelectTargetEventParam param = new SelectTargetEventParam(this.commonAttackTargetID);
             Singleton <GameSkillEventSys> .GetInstance().SendEvent <SelectTargetEventParam>(GameSkillEventDef.Event_SelectTarget, base.GetActor(), ref param, GameSkillEventChannel.Channel_HostCtrlActor);
         }
     }
 }
Ejemplo n.º 3
0
        public void InitControlIndicator()
        {
            if (!ActorHelper.IsHostActor(ref this.skillSlot.Actor))
            {
                return;
            }
            float num  = 0f;
            float num2 = 0f;

            GameSettings.GetLunPanSensitivity(out num, out num2);
            this.SetIndicatorSpeed(num, num2);
        }
Ejemplo n.º 4
0
        private void OnSelectTarget(ref SelectTargetEventParam _param)
        {
            Vector3 zero = Vector3.zero;
            PoolObjHandle <ActorRoot> actor = Singleton <GameObjMgr> .GetInstance().GetActor(_param.commonAttackTargetID);

            if (((actor != 0) && (this.indicatePrefab != null)) && !ActorHelper.IsHostActor(ref actor))
            {
                this.targetObj = actor;
                this.indicatePrefab.SetActive(true);
                if (this.targetObj.handle.CharInfo != null)
                {
                    this.SetPrefabScaler(this.indicatePrefab, this.targetObj.handle.CharInfo.iCollisionSize.x);
                }
                else
                {
                    this.SetPrefabScaler(this.indicatePrefab, 400);
                }
                zero    = actor.handle.gameObject.transform.position;
                zero.y += 0.2f;
                this.indicatePrefab.transform.position = zero;
                this.indicatePrefab.transform.SetParent(actor.handle.gameObject.transform);
                this.indicatePrefab.SetLayer("Actor");
                if (this.lockHeroPrefab != null)
                {
                    if (actor.handle.TheActorMeta.ActorType == ActorTypeDef.Actor_Type_Hero)
                    {
                        float num = 0f;
                        if (actor.handle.CharInfo != null)
                        {
                            num = ((float)actor.handle.CharInfo.iBulletHeight) / 1000f;
                        }
                        this.lockHeroPrefab.SetActive(true);
                        zero.y += num;
                        this.lockHeroPrefab.transform.position = zero;
                        this.lockHeroPrefab.transform.SetParent(actor.handle.gameObject.transform);
                        this.lockHeroPrefab.SetLayer("Actor");
                    }
                    else
                    {
                        this.lockHeroPrefab.SetActive(false);
                        MonoSingleton <SceneMgr> .GetInstance().AddToRoot(this.lockHeroPrefab, SceneObjType.ActionRes);
                    }
                }
            }
        }
Ejemplo n.º 5
0
        private void OnLockTarget(ref LockTargetEventParam _param)
        {
            Vector3 position = Vector3.zero;
            PoolObjHandle <ActorRoot> actor = Singleton <GameObjMgr> .GetInstance().GetActor(_param.lockTargetID);

            if (actor && this.lockTargetPrefab != null && !ActorHelper.IsHostActor(ref actor))
            {
                this.targetObj = actor;
                this.ShowPrefab(this.lockTargetPrefab);
                if (actor.get_handle().CharInfo != null)
                {
                    this.SetPrefabScaler(this.lockTargetPrefab, actor.get_handle().CharInfo.iCollisionSize.x);
                }
                else
                {
                    this.SetPrefabScaler(this.lockTargetPrefab, 400);
                }
                position    = actor.get_handle().myTransform.position;
                position.y += 0.2f;
                this.lockTargetTransform.position = position;
                this.lockTargetTransform.SetParent(actor.get_handle().myTransform);
                this.lockTargetTransform.localRotation = Quaternion.Euler(90f, 0f, 0f);
                if (this.lockHeroPrefab != null)
                {
                    if (actor.get_handle().TheActorMeta.ActorType == ActorTypeDef.Actor_Type_Hero)
                    {
                        float num = 0f;
                        if (actor.get_handle().CharInfo != null)
                        {
                            num = (float)actor.get_handle().CharInfo.iBulletHeight / 1000f;
                        }
                        this.ShowPrefab(this.lockHeroPrefab);
                        position.y += num;
                        this.lockHeroTransform.position = position;
                        this.lockHeroTransform.SetParent(actor.get_handle().myTransform);
                    }
                    else
                    {
                        this.HidePrefab(this.lockHeroPrefab);
                        MonoSingleton <SceneMgr> .GetInstance().AddToRoot(this.lockHeroPrefab, SceneObjType.ActionRes);
                    }
                }
            }
        }
Ejemplo n.º 6
0
 private void OnActorDamage(ref HurtEventResultInfo info)
 {
     if (!this.bHasFailure && ActorHelper.IsHostActor(ref info.src))
     {
         int actorHp      = info.src.get_handle().ValueComponent.actorHp;
         int actorHpTotal = info.src.get_handle().ValueComponent.actorHpTotal;
         int num          = actorHp * 100 / actorHpTotal;
         if (num < this.LoweastHealthPercent)
         {
             this.LoweastHealthPercent = num;
         }
         bool flag = !SmartCompare.Compare <int>(num, this.healthPercent, this.operation);
         if (this.bHasFailure != flag)
         {
             this.bHasFailure = flag;
             this.TriggerChangedEvent();
         }
     }
 }
Ejemplo n.º 7
0
 public void SendEvent <ParamType>(GameSkillEventDef _event, PoolObjHandle <ActorRoot> _src, ref ParamType _param, GameSkillEventChannel _channel = 0)
 {
     if (_src != 0)
     {
         if (_channel == GameSkillEventChannel.Channel_HostCtrlActor)
         {
             if (ActorHelper.IsHostCtrlActor(ref _src))
             {
                 this.SendEvent <ParamType>(_event, ref _param);
             }
         }
         else if (_channel == GameSkillEventChannel.Channel_HostActor)
         {
             if (ActorHelper.IsHostActor(ref _src))
             {
                 this.SendEvent <ParamType>(_event, ref _param);
             }
         }
         else if (_channel == GameSkillEventChannel.Channel_AllActor)
         {
             this.SendEvent <ParamType>(_event, ref _param);
         }
     }
 }
Ejemplo n.º 8
0
        public void CreateIndicatePrefab(Skill _skillObj)
        {
            if (((this.skillSlot.Actor != 0) && ActorHelper.IsHostActor(ref this.skillSlot.Actor)) && ((_skillObj != null) && (_skillObj.cfgData != null)))
            {
                this.effectHideFrameNum = 0;
                GameObject content = Singleton <CResourceManager> .GetInstance().GetResource(_skillObj.GuidePrefabName, typeof(GameObject), enResourceType.BattleScene, false, false).m_content as GameObject;

                ActorRoot  handle   = this.skillSlot.Actor.handle;
                Quaternion rotation = handle.gameObject.transform.rotation;
                Vector3    position = handle.gameObject.transform.position;
                position.y += 0.3f;
                if (content != null)
                {
                    this.guidePrefab = (GameObject)UnityEngine.Object.Instantiate(content, position, rotation);
                    this.guidePrefab.transform.SetParent(handle.gameObject.transform);
                    this.guidePrefab.SetActive(false);
                }
                content = Singleton <CResourceManager> .GetInstance().GetResource(_skillObj.GuideWarnPrefabName, typeof(GameObject), enResourceType.BattleScene, false, false).m_content as GameObject;

                if (content != null)
                {
                    this.guideWarnPrefab = (GameObject)UnityEngine.Object.Instantiate(content, position, rotation);
                    this.guideWarnPrefab.transform.SetParent(handle.gameObject.transform);
                    this.guideWarnPrefab.SetActive(false);
                }
                content = Singleton <CResourceManager> .GetInstance().GetResource(_skillObj.EffectPrefabName, typeof(GameObject), enResourceType.BattleScene, false, false).m_content as GameObject;

                if (content != null)
                {
                    this.effectPrefab = (GameObject)UnityEngine.Object.Instantiate(content, position, rotation);
                    this.effectPrefab.SetActive(false);
                    MonoSingleton <SceneMgr> .GetInstance().AddToRoot(this.effectPrefab, SceneObjType.ActionRes);
                }
                content = Singleton <CResourceManager> .GetInstance().GetResource(_skillObj.EffectWarnPrefabName, typeof(GameObject), enResourceType.BattleScene, false, false).m_content as GameObject;

                if (content != null)
                {
                    this.effectWarnPrefab = (GameObject)UnityEngine.Object.Instantiate(content, position, rotation);
                    this.effectWarnPrefab.SetActive(false);
                    MonoSingleton <SceneMgr> .GetInstance().AddToRoot(this.effectWarnPrefab, SceneObjType.ActionRes);
                }
                content = Singleton <CResourceManager> .GetInstance().GetResource(_skillObj.FixedPrefabName, typeof(GameObject), enResourceType.BattleScene, false, false).m_content as GameObject;

                if (content != null)
                {
                    this.fixedPrefab = (GameObject)UnityEngine.Object.Instantiate(content, position, rotation);
                    this.fixedPrefab.SetActive(false);
                    this.fixedPrefab.transform.SetParent(handle.gameObject.transform);
                }
                content = Singleton <CResourceManager> .GetInstance().GetResource(_skillObj.FixedWarnPrefabName, typeof(GameObject), enResourceType.BattleScene, false, false).m_content as GameObject;

                if (content != null)
                {
                    this.fixedWarnPrefab = (GameObject)UnityEngine.Object.Instantiate(content, position, rotation);
                    this.fixedWarnPrefab.SetActive(false);
                    this.fixedWarnPrefab.transform.SetParent(handle.gameObject.transform);
                }
                int iGuideDistance = (int)_skillObj.cfgData.iGuideDistance;
                this.SetPrefabScaler(this.guidePrefab, iGuideDistance);
                this.SetPrefabScaler(this.guideWarnPrefab, iGuideDistance);
                if ((_skillObj.cfgData.dwRangeAppointType == 3) || (_skillObj.cfgData.dwRangeAppointType == 1))
                {
                    this.SetPrefabScaler(this.effectPrefab, iGuideDistance);
                    this.SetPrefabScaler(this.effectWarnPrefab, iGuideDistance);
                }
                int iFixedDistance = (int)_skillObj.cfgData.iFixedDistance;
                this.SetPrefabScaler(this.fixedPrefab, iFixedDistance);
                this.SetPrefabScaler(this.fixedWarnPrefab, iFixedDistance);
            }
        }
Ejemplo n.º 9
0
        public void UnInitIndicatePrefab(bool bDestroy)
        {
            if (!this.skillSlot.Actor || !ActorHelper.IsHostActor(ref this.skillSlot.Actor))
            {
                return;
            }
            if (this.guidePrefab != null)
            {
                this.HidePrefab(this.guidePrefab);
                this.guideSelectActive = false;
                if (bDestroy)
                {
                    Singleton <CGameObjectPool> .GetInstance().RecycleGameObject(this.guidePrefab);

                    this.guidePrefab = null;
                }
            }
            if (this.effectPrefabNormal != null)
            {
                this.HidePrefab(this.effectPrefabNormal);
                this.effectSelectActive = false;
                if (bDestroy)
                {
                    Singleton <CGameObjectPool> .GetInstance().RecycleGameObject(this.effectPrefabNormal);

                    this.effectPrefabNormal = null;
                }
            }
            if (this.effectPrefabBlock != null)
            {
                this.HidePrefab(this.effectPrefabBlock);
                if (bDestroy)
                {
                    Singleton <CGameObjectPool> .GetInstance().RecycleGameObject(this.effectPrefabBlock);

                    this.effectPrefabBlock = null;
                }
            }
            if (this.effectPrefabGrass != null)
            {
                this.HidePrefab(this.effectPrefabGrass);
                if (bDestroy)
                {
                    Singleton <CGameObjectPool> .GetInstance().RecycleGameObject(this.effectPrefabGrass);

                    this.effectPrefabGrass = null;
                }
            }
            if (this.guideWarnPrefab != null)
            {
                this.HidePrefab(this.guideWarnPrefab);
                if (bDestroy)
                {
                    Singleton <CGameObjectPool> .GetInstance().RecycleGameObject(this.guideWarnPrefab);

                    this.guideWarnPrefab = null;
                }
            }
            if (this.effectWarnPrefab != null)
            {
                this.HidePrefab(this.effectWarnPrefab);
                if (bDestroy)
                {
                    Singleton <CGameObjectPool> .GetInstance().RecycleGameObject(this.effectWarnPrefab);

                    this.effectWarnPrefab = null;
                }
            }
            if (this.fixedPrefab != null)
            {
                this.HidePrefab(this.fixedPrefab);
                if (bDestroy)
                {
                    Singleton <CGameObjectPool> .GetInstance().RecycleGameObject(this.fixedPrefab);

                    this.fixedPrefab = null;
                }
            }
            if (this.fixedWarnPrefab != null)
            {
                this.HidePrefab(this.fixedWarnPrefab);
                if (bDestroy)
                {
                    Singleton <CGameObjectPool> .GetInstance().RecycleGameObject(this.fixedWarnPrefab);

                    this.fixedWarnPrefab = null;
                }
            }
        }
Ejemplo n.º 10
0
        public void CreateIndicatePrefab(Skill _skillObj)
        {
            if (!this.skillSlot.Actor || !ActorHelper.IsHostActor(ref this.skillSlot.Actor))
            {
                return;
            }
            if (_skillObj == null || _skillObj.cfgData == null)
            {
                return;
            }
            this.effectHideFrameNum = 0;
            ActorRoot  handle   = this.skillSlot.Actor.handle;
            Quaternion rotation = handle.myTransform.rotation;
            Vector3    position = handle.myTransform.position;

            position.y += 0.3f;
            GameObject pooledGameObjLOD = MonoSingleton <SceneMgr> .GetInstance().GetPooledGameObjLOD(_skillObj.GuidePrefabName, true, SceneObjType.ActionRes, position, rotation);

            if (pooledGameObjLOD != null)
            {
                this.guidePrefab = pooledGameObjLOD;
                this.guidePrefab.transform.SetParent(handle.myTransform);
                this.HidePrefab(this.guidePrefab);
                this.SetPrefabTag(this.guidePrefab);
                this.guideSelectActive = false;
            }
            pooledGameObjLOD = MonoSingleton <SceneMgr> .GetInstance().GetPooledGameObjLOD(_skillObj.GuideWarnPrefabName, true, SceneObjType.ActionRes, position, rotation);

            if (pooledGameObjLOD != null)
            {
                this.guideWarnPrefab = pooledGameObjLOD;
                this.guideWarnPrefab.transform.SetParent(handle.myTransform);
                this.HidePrefab(this.guideWarnPrefab);
                this.SetPrefabTag(this.guideWarnPrefab);
            }
            pooledGameObjLOD = MonoSingleton <SceneMgr> .GetInstance().GetPooledGameObjLOD(_skillObj.EffectPrefabName, true, SceneObjType.ActionRes, position, rotation);

            if (pooledGameObjLOD != null)
            {
                this.effectPrefabNormal = pooledGameObjLOD;
                this.HidePrefab(this.effectPrefabNormal);
                this.SetPrefabTag(this.effectPrefabNormal);
                this.effectSelectActive = false;
                MonoSingleton <SceneMgr> .GetInstance().AddToRoot(this.effectPrefabNormal, SceneObjType.ActionRes);
            }
            this.bSelectEffectPrefab = (_skillObj.cfgData.bSelectEffectPrefab > 0);
            if (this.bSelectEffectPrefab)
            {
                pooledGameObjLOD = MonoSingleton <SceneMgr> .GetInstance().GetPooledGameObjLOD(_skillObj.EffectPrefabName + "_y", true, SceneObjType.ActionRes, position, rotation);

                if (pooledGameObjLOD != null)
                {
                    this.effectPrefabBlock = pooledGameObjLOD;
                    this.HidePrefab(this.effectPrefabBlock);
                    this.SetPrefabTag(this.effectPrefabBlock);
                    MonoSingleton <SceneMgr> .GetInstance().AddToRoot(this.effectPrefabBlock, SceneObjType.ActionRes);
                }
                pooledGameObjLOD = MonoSingleton <SceneMgr> .GetInstance().GetPooledGameObjLOD(_skillObj.EffectPrefabName + "_G", true, SceneObjType.ActionRes, position, rotation);

                if (pooledGameObjLOD != null)
                {
                    this.effectPrefabGrass = pooledGameObjLOD;
                    this.HidePrefab(this.effectPrefabGrass);
                    this.SetPrefabTag(this.effectPrefabGrass);
                    MonoSingleton <SceneMgr> .GetInstance().AddToRoot(this.effectPrefabGrass, SceneObjType.ActionRes);
                }
            }
            pooledGameObjLOD = MonoSingleton <SceneMgr> .GetInstance().GetPooledGameObjLOD(_skillObj.EffectWarnPrefabName, true, SceneObjType.ActionRes, position, rotation);

            if (pooledGameObjLOD != null)
            {
                this.effectWarnPrefab = pooledGameObjLOD;
                this.HidePrefab(this.effectWarnPrefab);
                this.SetPrefabTag(this.effectWarnPrefab);
                MonoSingleton <SceneMgr> .GetInstance().AddToRoot(this.effectWarnPrefab, SceneObjType.ActionRes);
            }
            pooledGameObjLOD = MonoSingleton <SceneMgr> .GetInstance().GetPooledGameObjLOD(_skillObj.FixedPrefabName, true, SceneObjType.ActionRes, position, rotation);

            if (pooledGameObjLOD != null)
            {
                this.fixedPrefab = pooledGameObjLOD;
                this.HidePrefab(this.fixedPrefab);
                this.SetPrefabTag(this.fixedPrefab);
                this.fixedPrefab.transform.SetParent(handle.myTransform);
            }
            pooledGameObjLOD = MonoSingleton <SceneMgr> .GetInstance().GetPooledGameObjLOD(_skillObj.FixedWarnPrefabName, true, SceneObjType.ActionRes, position, rotation);

            if (pooledGameObjLOD != null)
            {
                this.fixedWarnPrefab = pooledGameObjLOD;
                this.HidePrefab(this.fixedWarnPrefab);
                this.SetPrefabTag(this.fixedWarnPrefab);
                this.fixedWarnPrefab.transform.SetParent(handle.myTransform);
            }
            int distance = _skillObj.cfgData.iGuideDistance;

            this.SetPrefabScaler(this.guidePrefab, distance);
            this.SetPrefabScaler(this.guideWarnPrefab, distance);
            if (_skillObj.cfgData.bRangeAppointType == 3 || _skillObj.cfgData.bRangeAppointType == 1)
            {
                this.SetPrefabScaler(this.effectPrefabNormal, distance);
                this.SetPrefabScaler(this.effectPrefabBlock, distance);
                this.SetPrefabScaler(this.effectPrefabGrass, distance);
                this.SetPrefabScaler(this.effectWarnPrefab, distance);
            }
            int distance2 = _skillObj.cfgData.iFixedDistance;

            this.SetPrefabScaler(this.fixedPrefab, distance2);
            this.SetPrefabScaler(this.fixedWarnPrefab, distance2);
        }
Ejemplo n.º 11
0
        public void UnInitIndicatePrefab(bool bDestroy)
        {
            if ((this.skillSlot.Actor != 0) && ActorHelper.IsHostActor(ref this.skillSlot.Actor))
            {
                if (this.guidePrefab != null)
                {
                    this.HidePrefab(this.guidePrefab);
                    this.guideSelectActive = false;
                    if (bDestroy)
                    {
                        Singleton <CGameObjectPool> .GetInstance().RecycleGameObject(this.guidePrefab);

                        this.guidePrefab = null;
                    }
                }
                if (this.effectPrefab != null)
                {
                    this.HidePrefab(this.effectPrefab);
                    this.effectSelectActive = false;
                    if (bDestroy)
                    {
                        Singleton <CGameObjectPool> .GetInstance().RecycleGameObject(this.effectPrefab);

                        this.effectPrefab = null;
                    }
                }
                if (this.guideWarnPrefab != null)
                {
                    this.HidePrefab(this.guideWarnPrefab);
                    if (bDestroy)
                    {
                        Singleton <CGameObjectPool> .GetInstance().RecycleGameObject(this.guideWarnPrefab);

                        this.guideWarnPrefab = null;
                    }
                }
                if (this.effectWarnPrefab != null)
                {
                    this.HidePrefab(this.effectWarnPrefab);
                    if (bDestroy)
                    {
                        Singleton <CGameObjectPool> .GetInstance().RecycleGameObject(this.effectWarnPrefab);

                        this.effectWarnPrefab = null;
                    }
                }
                if (this.fixedPrefab != null)
                {
                    this.HidePrefab(this.fixedPrefab);
                    if (bDestroy)
                    {
                        Singleton <CGameObjectPool> .GetInstance().RecycleGameObject(this.fixedPrefab);

                        this.fixedPrefab = null;
                    }
                }
                if (this.fixedWarnPrefab != null)
                {
                    this.HidePrefab(this.fixedWarnPrefab);
                    if (bDestroy)
                    {
                        Singleton <CGameObjectPool> .GetInstance().RecycleGameObject(this.fixedWarnPrefab);

                        this.fixedWarnPrefab = null;
                    }
                }
            }
        }
Ejemplo n.º 12
0
        public void CreateIndicatePrefab(Skill _skillObj)
        {
            if (((this.skillSlot.Actor != 0) && ActorHelper.IsHostActor(ref this.skillSlot.Actor)) && ((_skillObj != null) && (_skillObj.cfgData != null)))
            {
                this.effectHideFrameNum = 0;
                ActorRoot  handle   = this.skillSlot.Actor.handle;
                Quaternion rotation = handle.gameObject.transform.rotation;
                Vector3    position = handle.gameObject.transform.position;
                position.y += 0.3f;
                GameObject obj2 = MonoSingleton <SceneMgr> .GetInstance().GetPooledGameObjLOD(_skillObj.GuidePrefabName, true, SceneObjType.ActionRes, position, rotation);

                if (obj2 != null)
                {
                    this.guidePrefab = obj2;
                    this.guidePrefab.transform.SetParent(handle.gameObject.transform);
                    this.HidePrefab(this.guidePrefab);
                    this.SetPrefabTag(this.guidePrefab);
                    this.guideSelectActive = false;
                }
                obj2 = MonoSingleton <SceneMgr> .GetInstance().GetPooledGameObjLOD(_skillObj.GuideWarnPrefabName, true, SceneObjType.ActionRes, position, rotation);

                if (obj2 != null)
                {
                    this.guideWarnPrefab = obj2;
                    this.guideWarnPrefab.transform.SetParent(handle.gameObject.transform);
                    this.HidePrefab(this.guideWarnPrefab);
                    this.SetPrefabTag(this.guideWarnPrefab);
                }
                obj2 = MonoSingleton <SceneMgr> .GetInstance().GetPooledGameObjLOD(_skillObj.EffectPrefabName, true, SceneObjType.ActionRes, position, rotation);

                if (obj2 != null)
                {
                    this.effectPrefab = obj2;
                    this.HidePrefab(this.effectPrefab);
                    this.SetPrefabTag(this.effectPrefab);
                    this.effectSelectActive = false;
                    MonoSingleton <SceneMgr> .GetInstance().AddToRoot(this.effectPrefab, SceneObjType.ActionRes);
                }
                obj2 = MonoSingleton <SceneMgr> .GetInstance().GetPooledGameObjLOD(_skillObj.EffectWarnPrefabName, true, SceneObjType.ActionRes, position, rotation);

                if (obj2 != null)
                {
                    this.effectWarnPrefab = obj2;
                    this.HidePrefab(this.effectWarnPrefab);
                    this.SetPrefabTag(this.effectWarnPrefab);
                    MonoSingleton <SceneMgr> .GetInstance().AddToRoot(this.effectWarnPrefab, SceneObjType.ActionRes);
                }
                obj2 = MonoSingleton <SceneMgr> .GetInstance().GetPooledGameObjLOD(_skillObj.FixedPrefabName, true, SceneObjType.ActionRes, position, rotation);

                if (obj2 != null)
                {
                    this.fixedPrefab = obj2;
                    this.HidePrefab(this.fixedPrefab);
                    this.SetPrefabTag(this.fixedPrefab);
                    this.fixedPrefab.transform.SetParent(handle.gameObject.transform);
                }
                obj2 = MonoSingleton <SceneMgr> .GetInstance().GetPooledGameObjLOD(_skillObj.FixedWarnPrefabName, true, SceneObjType.ActionRes, position, rotation);

                if (obj2 != null)
                {
                    this.fixedWarnPrefab = obj2;
                    this.HidePrefab(this.fixedWarnPrefab);
                    this.SetPrefabTag(this.fixedWarnPrefab);
                    this.fixedWarnPrefab.transform.SetParent(handle.gameObject.transform);
                }
                int iGuideDistance = (int)_skillObj.cfgData.iGuideDistance;
                this.SetPrefabScaler(this.guidePrefab, iGuideDistance);
                this.SetPrefabScaler(this.guideWarnPrefab, iGuideDistance);
                if ((_skillObj.cfgData.dwRangeAppointType == 3) || (_skillObj.cfgData.dwRangeAppointType == 1))
                {
                    this.SetPrefabScaler(this.effectPrefab, iGuideDistance);
                    this.SetPrefabScaler(this.effectWarnPrefab, iGuideDistance);
                }
                int iFixedDistance = (int)_skillObj.cfgData.iFixedDistance;
                this.SetPrefabScaler(this.fixedPrefab, iFixedDistance);
                this.SetPrefabScaler(this.fixedWarnPrefab, iFixedDistance);
            }
        }