Ejemplo n.º 1
0
 protected override void Awake()
 {
     if (this.IsInit)
     {
         return;
     }
     this.IsInit = true;
     base.Awake();
     this.InitFXLOD();
     this.InitColliders();
     this.InitAnimators();
     this.InitAnimations();
     this.InitParticles();
     this.InitSequenceFrames();
     this.InitTransformNodesStateOfActive(base.get_transform());
     this.InitTransformNodesStateOfRender(base.get_transform());
     this.InitColliderEnable(base.get_transform());
     this.CalDelayTimeByRoot();
     this.CalAnimationLiveTime();
     this.CalAnimatorLiveTime();
     if (base.get_gameObject().get_layer() != LayerSystem.NameToLayer("Gear"))
     {
         LayerSystem.SetGameObjectLayer(base.get_gameObject(), "FX", 1);
     }
     this.InitFXEventReceivers();
 }
Ejemplo n.º 2
0
 private void RefreshRoleModel(int type)
 {
     this.ExteriorUnit.WrapSetData(delegate
     {
         this.ExteriorUnit.FashionIDs    = this.GetFashionList();
         this.ExteriorUnit.ServerModelID = ((type != 0) ? 0 : EntityWorld.Instance.EntSelf.ModelID);
         this.ExteriorUnit.SetType((type != 0) ? type : EntityWorld.Instance.EntSelf.TypeID);
         this.ExteriorUnit.Gogok      = 3;
         this.ExteriorUnit.IsHideWing = false;
     });
     ModelDisplayManager.Instance.ShowModel(this.ExteriorUnit.FinalModelID, true, ModelDisplayManager.OFFSET_TO_ROLESHOWUI, delegate(int uid)
     {
         this.roleModel = ModelDisplayManager.Instance.GetUIModel(uid);
         if (this.roleModel != null)
         {
             this.roleModel.EquipOn(this.ExteriorUnit.FinalWeaponID, this.ExteriorUnit.FinalWeaponGogok);
             this.roleModel.EquipOn(this.ExteriorUnit.FinalClothesID, 0);
             this.roleModel.EquipWingOn(this.ExteriorUnit.FinalWingID);
             this.roleModel.PreciseSetAction("idle_city");
             LayerSystem.SetGameObjectLayer(this.roleModel.get_gameObject(), "CameraRange", 2);
             this.roleModel.get_transform().set_localPosition(new Vector3(0f, 0.1f, -0.3f));
             this.roleModel.get_transform().set_localScale(0.95f * Vector3.get_one());
             this.roleModel.get_transform().set_localEulerAngles(Vector3.get_zero());
         }
     });
 }
Ejemplo n.º 3
0
 public static void SetLayer(GameObject go, Actor actor)
 {
     if (actor == null)
     {
         return;
     }
     if ((actor is ActorSelf && RTManager.Instance.RTIsUI()) || actor is ActorModel)
     {
         LayerSystem.SetGameObjectLayer(go, "CameraRange", 1);
     }
 }
Ejemplo n.º 4
0
    public void GuideOn()
    {
        this.m_isGuideOn = true;
        LayerSystem.SetGameObjectLayer(base.get_gameObject(), "UI", 1);
        DepthManager.SetGraphicRaycaster(base.get_gameObject());
        DepthManager.SetDepth(base.get_gameObject(), 10002);
        Canvas component = base.GetComponent <Canvas>();

        if (component != null)
        {
            component.set_overrideSorting(true);
            component.set_enabled(true);
        }
    }
Ejemplo n.º 5
0
    protected ActorModel GetModel(int index, ExteriorArithmeticUnit exteriorUnit)
    {
        ActorModel actorModel = ModelPool.Instance.Get(exteriorUnit.FinalModelID);

        actorModel.ModelType  = ActorModelType.UI;
        actorModel.ModelLayer = "NPC";
        actorModel.set_name(index.ToString());
        actorModel.get_transform().set_position(new Vector3((float)(-1000 * (index + 1)), 1000f, 0f));
        actorModel.EquipOn(exteriorUnit.FinalWeaponID, exteriorUnit.FinalWeaponGogok);
        actorModel.EquipOn(exteriorUnit.FinalClothesID, 0);
        actorModel.EquipWingOn(exteriorUnit.FinalWingID);
        LayerSystem.SetGameObjectLayer(actorModel.get_gameObject(), "NPC", 1);
        actorModel.PreciseSetAction("idle_city");
        return(actorModel);
    }
Ejemplo n.º 6
0
    public static ActorModel GetModel(int wingModelId)
    {
        ActorModel actorModel = ModelPool.Instance.Get(EntityWorld.Instance.EntSelf.ModelID);

        actorModel.ModelType  = ActorModelType.UI;
        actorModel.ModelLayer = "NPC";
        float num = (float)(-1000 * (WingGlobal.models.get_Count() + 1));

        actorModel.get_transform().set_position(new Vector3(num, 0f));
        actorModel.EquipOn(EntityWorld.Instance.EntSelf.EquipCustomizationer.GetIdOfWeapon(), 0);
        actorModel.EquipOn(EntityWorld.Instance.EntSelf.EquipCustomizationer.GetIdOfClothes(), 0);
        actorModel.EquipWingOn(wingModelId);
        LayerSystem.SetGameObjectLayer(actorModel.get_gameObject(), "NPC", 1);
        actorModel.ShowSelf(true);
        return(actorModel);
    }
Ejemplo n.º 7
0
 private void UpdateActor(Action logicCallback)
 {
     ModelDisplayManager.Instance.ShowModel(this.ExteriorUnit.FinalModelID, true, ModelDisplayManager.OFFSET_TO_ROLESHOWUI, delegate(int uid)
     {
         this.roleModel = ModelDisplayManager.Instance.GetUIModel(uid);
         if (this.roleModel != null)
         {
             this.roleModel.get_transform().set_localEulerAngles(Vector3.get_zero());
             if (logicCallback != null)
             {
                 logicCallback.Invoke();
             }
             LayerSystem.SetGameObjectLayer(this.roleModel.get_gameObject(), "CameraRange", 2);
             this.roleModel.PreciseSetAction("idle_city");
         }
     });
 }
Ejemplo n.º 8
0
 public override void CreateActor()
 {
     base.AsyncLoadID = EntityWorld.Instance.GetCityMonsterActorAsync(this.ModelID, delegate(ActorWildMonster actorMonster)
     {
         Monster monster = DataReader <Monster> .Get(this.TypeID);
         base.Actor      = actorMonster;
         base.Actor.InitActionPriorityTable();
         actorMonster.theEntity  = this;
         AvatarModel avatarModel = DataReader <AvatarModel> .Get(this.ModelID);
         BillboardManager.Instance.AddBillboardsInfo(25, base.Actor.FixTransform, (float)avatarModel.height_HP, base.ID, false, true, true);
         ShadowController.ShowShadow(base.ID, base.Actor.FixTransform, false, this.modelID);
         LayerSystem.SetGameObjectLayer(base.Actor.FixGameObject, "CityPlayer", 2);
         ActorVisibleManager.Instance.Add(base.ID, base.Actor.FixTransform, 25, 0L);
         base.Actor.SetAllCollider(true);
         this.Show();
     });
 }
Ejemplo n.º 9
0
    private void JustPlaySpine(int uid, int templateId, Transform host, string uibase, int depthValue, Action finishCallback, string layer, float xOffset, float yOffset, float xScale, float yScale, bool stencilMask, FXMaskLayer.MaskState maskState = FXMaskLayer.MaskState.None)
    {
        FXSpine fXSpine = DataReader <FXSpine> .Get(templateId);

        if (fXSpine == null || string.IsNullOrEmpty(fXSpine.name))
        {
            return;
        }
        if (host == null)
        {
            return;
        }
        ActorFXSpine actorFXSpine = FXSpinePool.Instance.Get(templateId);

        if (actorFXSpine == null)
        {
            return;
        }
        actorFXSpine.get_transform().set_name(templateId.ToString());
        if (maskState != FXMaskLayer.MaskState.None)
        {
            FXMaskLayer fXMaskLayer = actorFXSpine.get_gameObject().AddUniqueComponent <FXMaskLayer>();
            fXMaskLayer.state = maskState;
        }
        this.m_fxSpines.set_Item(uid, actorFXSpine);
        actorFXSpine.get_transform().set_parent(host);
        actorFXSpine.get_transform().set_localPosition(new Vector3(xOffset, yOffset, 0f));
        actorFXSpine.get_transform().set_localRotation(Quaternion.get_identity());
        actorFXSpine.get_transform().set_localScale(new Vector3(xScale, yScale, 1f));
        LayerSystem.SetGameObjectLayer(actorFXSpine.get_gameObject(), layer, 1);
        DepthOfFX depthOfFX = actorFXSpine.get_gameObject().AddMissingComponent <DepthOfFX>();

        depthOfFX.SortingOrder       = depthValue;
        actorFXSpine._uid            = uid;
        actorFXSpine._dataSpine      = fXSpine;
        actorFXSpine._uibase         = uibase;
        actorFXSpine._depth          = depthValue;
        actorFXSpine._stencilMask    = stencilMask;
        actorFXSpine._finishCallback = finishCallback;
        actorFXSpine.AwakeSelf();
        actorFXSpine.get_gameObject().SetActive(true);
        actorFXSpine.PlaySpine();
        this.DoSetShader(actorFXSpine, stencilMask, fXSpine);
        this.PlaySound(fXSpine);
    }
Ejemplo n.º 10
0
    public void ShowRoleModel(int profession, List <WearEquipInfo> equipInfos, List <string> fashionInfos, WearWingInfo wearWingInfo)
    {
        this.m_profession   = profession;
        this.m_equipInfos   = equipInfos;
        this.m_fashionInfos = fashionInfos;
        this.m_wingInfo     = wearWingInfo;
        int  wingID   = (this.m_wingInfo == null) ? 0 : this.m_wingInfo.wingId;
        int  wingLv   = (this.m_wingInfo == null) ? 0 : this.m_wingInfo.lv;
        bool wingHide = this.m_wingInfo != null && this.m_wingInfo.wingHidden;

        if (DataReader <RoleCreate> .Get(profession) == null)
        {
            return;
        }
        if (this.m_equipInfos == null)
        {
            return;
        }
        this.equipIDs.Clear();
        for (int i = 0; i < equipInfos.get_Count(); i++)
        {
            this.equipIDs.Add(equipInfos.get_Item(i).id);
        }
        this.ExteriorUnit.WrapSetData(delegate
        {
            this.ExteriorUnit.SetType(this.m_profession);
            this.ExteriorUnit.EquipIDs   = this.equipIDs;
            this.ExteriorUnit.FashionIDs = fashionInfos;
            this.ExteriorUnit.WingID     = WingManager.GetWingModel(wingID, wingLv);
            this.ExteriorUnit.IsHideWing = wingHide;
        });
        ModelDisplayManager.Instance.ShowModel(this.ExteriorUnit.FinalModelID, true, ModelDisplayManager.OFFSET_TO_ROLESHOWUI, delegate(int uid)
        {
            this.roleModel = ModelDisplayManager.Instance.GetUIModel(uid);
            if (this.roleModel != null)
            {
                this.roleModel.get_transform().set_localEulerAngles(Vector3.get_zero());
                this.roleModel.EquipOn(this.ExteriorUnit.FinalWeaponID, this.ExteriorUnit.FinalWeaponGogok);
                this.roleModel.EquipOn(this.ExteriorUnit.FinalClothesID, 0);
                this.roleModel.EquipWingOn(this.ExteriorUnit.FinalWingID);
                LayerSystem.SetGameObjectLayer(this.roleModel.get_gameObject(), "CameraRange", 2);
                this.roleModel.PreciseSetAction("idle_city");
            }
        });
    }
Ejemplo n.º 11
0
    private void RefreshModel(BossBiaoQian config)
    {
        List <float> offset = config.modelOffset;

        WaitUI.OpenUI(0u);
        ModelDisplayManager.Instance.ShowModel(config.modelId, true, new Vector2(offset.get_Item(0), offset.get_Item(1)), delegate(int uid)
        {
            this.modelUid      = uid;
            ActorModel uIModel = ModelDisplayManager.Instance.GetUIModel(uid);
            if (uIModel != null)
            {
                Vector3 localPosition = uIModel.get_transform().get_localPosition();
                uIModel.get_transform().set_localPosition(new Vector3(localPosition.x, localPosition.y, offset.get_Item(2)));
                uIModel.get_transform().set_localEulerAngles(new Vector3(0f, config.modelAngle, 0f));
                LayerSystem.SetGameObjectLayer(uIModel.get_gameObject(), "CameraRange", 2);
            }
            WaitUI.CloseUI(0u);
        });
    }
Ejemplo n.º 12
0
 public int ScreenBattlePlay()
 {
     if (this.mScreenBattleUID != 0)
     {
         this.DeleteFX(this.mScreenBattleUID);
     }
     if (CamerasMgr.MainCameraRoot == null)
     {
         return(0);
     }
     CamerasMgr.CameraMain.set_cullingMask(Utils.GetCullingMask(8));
     CamerasMgr.Camera2BattleFX.get_gameObject().SetActive(true);
     this.mScreenBattleUID = FXManager.Instance.PlayFX(9999, CamerasMgr.Camera2BattleFX.get_transform(), Vector3.get_zero(), Quaternion.get_identity(), 1f, 1f, 0, false, 0, null, delegate(ActorFX obj)
     {
         LayerSystem.SetGameObjectLayer(obj.get_gameObject(), "CameraRange", 1);
         obj.get_transform().set_localPosition(new Vector3(0f, -3.12f, 7.25f));
         obj.get_transform().set_localRotation(Quaternion.get_identity());
     }, 1f, FXClassification.Normal);
     return(this.mScreenBattleUID);
 }
Ejemplo n.º 13
0
 private void RefreshBossModel(int modelID, int guildboosID)
 {
     ModelDisplayManager.Instance.ShowModel(modelID, true, ModelDisplayManager.OFFSET_TO_BOSSUI, delegate(int uid)
     {
         this.modelUid      = uid;
         ActorModel uIModel = ModelDisplayManager.Instance.GetUIModel(uid);
         if (uIModel != null)
         {
             Vector3 zero       = Vector3.get_zero();
             Vector3 localScale = Vector3.get_one();
             Vector3 zero2      = Vector3.get_zero();
             JunTuanBOSSMoXing junTuanBOSSMoXing = DataReader <JunTuanBOSSMoXing> .Get(guildboosID);
             if (junTuanBOSSMoXing != null)
             {
                 for (int i = 0; i < junTuanBOSSMoXing.modelOffset.get_Count(); i++)
                 {
                     if (i == 0)
                     {
                         zero.x = junTuanBOSSMoXing.modelOffset.get_Item(0);
                     }
                     if (i == 1)
                     {
                         zero.y = junTuanBOSSMoXing.modelOffset.get_Item(1);
                     }
                     if (i == 2)
                     {
                         zero.z = junTuanBOSSMoXing.modelOffset.get_Item(2);
                     }
                 }
                 localScale = Vector3.get_one() * junTuanBOSSMoXing.modelZoom;
                 zero2.y    = junTuanBOSSMoXing.modelAngle;
             }
             uIModel.get_transform().set_localPosition(zero);
             uIModel.get_transform().set_localScale(localScale);
             uIModel.get_transform().set_localEulerAngles(zero2);
             LayerSystem.SetGameObjectLayer(uIModel.get_gameObject(), "CameraRange", 2);
         }
     });
 }
Ejemplo n.º 14
0
    private void JustPlayfxOnUI(int uid, int templateId, Transform host, int time, int depthValue, Action finishCallback = null)
    {
        ActorFX actorFX = FXPool.Instance.Get(templateId, false);

        if (actorFX == null)
        {
            return;
        }
        Fx fx = DataReader <Fx> .Get(templateId);

        if (fx == null || string.IsNullOrEmpty(fx.path))
        {
            return;
        }
        this.m_fxs.set_Item(uid, actorFX);
        actorFX.uid = uid;
        actorFX.AwakeSelf();
        actorFX.get_transform().set_parent(host);
        actorFX.get_transform().set_localPosition(Vector3.get_zero());
        actorFX.get_transform().set_localRotation(Quaternion.get_identity());
        actorFX.get_gameObject().SetActive(true);
        actorFX.Scale          = 1f;
        actorFX.finishCallback = finishCallback;
        SoundManager.PlayUI(fx.audio, false);
        LayerSystem.SetGameObjectLayer(actorFX.get_gameObject(), "UI", 1);
        DepthOfFX depthOfFX = actorFX.get_gameObject().AddMissingComponent <DepthOfFX>();

        depthOfFX.SortingOrder = depthValue;
        if (time <= 0)
        {
            time = fx.time;
        }
        if (time > 0)
        {
            actorFX.AutoDestroy = false;
            actorFX.SetTimer(time);
        }
    }
Ejemplo n.º 15
0
    protected void ShowModel()
    {
        List <ChouJiangZhanShi> dataList = DataReader <ChouJiangZhanShi> .DataList;

        if (dataList == null)
        {
            return;
        }
        int num = Random.Range(0, dataList.get_Count());
        ChouJiangZhanShi chouJiangZhanShi = dataList.get_Item(num);
        int modelId = chouJiangZhanShi.modelId;
        int explain = chouJiangZhanShi.explain;

        this.petAttor.set_text(GameDataUtils.GetChineseContent(explain, false));
        ModelDisplayManager.Instance.ShowModel(modelId, true, ModelDisplayManager.OFFSET_TO_ROLESHOWUI, delegate(int uid)
        {
            this.roleModel = ModelDisplayManager.Instance.GetUIModel(uid);
            if (this.roleModel != null)
            {
                LayerSystem.SetGameObjectLayer(this.roleModel.get_gameObject(), "CameraRange", 2);
            }
        });
    }
Ejemplo n.º 16
0
    protected void SetCityPlayerActor(ActorCityPlayer actorCityPlayer, Action logicCallback)
    {
        AvatarModel avatarModel = DataReader <AvatarModel> .Get(this.FixModelID);

        base.Actor = actorCityPlayer;
        actorCityPlayer.theEntity = this;
        base.Actor.FixGameObject.SetActive(true);
        base.Actor.FixGameObject.set_name(base.ID.ToString());
        base.Actor.InitActionPriorityTable();
        base.Actor.CanAnimatorApplyMotion = false;
        ShadowController.ShowShadow(base.ID, base.Actor, false, this.FixModelID);
        ShaderEffectUtils.InitShaderRenderers(base.Actor.FixTransform, this.shaderRenderers, ref this.shadowRenderer, ref this.shadowSlicePlane);
        ShaderEffectUtils.InitTransparencys(this.shaderRenderers, this.alphaControls);
        this.InitBillboard((float)avatarModel.height_HP);
        LayerSystem.SetGameObjectLayer(base.Actor.FixGameObject, "CityPlayer", 2);
        ActorVisibleManager.Instance.Add(base.ID, base.Actor.FixTransform, 21, 0L);
        base.Actor.CastAction("idle", true, 1f, 0, 0, string.Empty);
        if (logicCallback != null)
        {
            logicCallback.Invoke();
        }
        this.InitActorState();
    }
Ejemplo n.º 17
0
 public int ChangeScenePlay()
 {
     if (this.mChangeSceneUID != 0)
     {
         this.DeleteFX(this.mChangeSceneUID);
     }
     if (CamerasMgr.MainCameraRoot == null)
     {
         return(0);
     }
     CamerasMgr.CameraMain.set_cullingMask(Utils.GetCullingMask(8));
     EventDispatcher.Broadcast <bool>(ShaderEffectEvent.ENABLE_BG_BLUR_FADEIN, true);
     CamerasMgr.Camera2BattleFX.get_gameObject().SetActive(true);
     this.mChangeSceneUID = FXManager.Instance.PlayFXOfDisplay(1107, CamerasMgr.Camera2BattleFX.get_transform(), Vector3.get_zero(), Quaternion.get_identity(), 1f, 1f, 0, false, delegate
     {
         this.ChangeSceneDelete();
     }, delegate(ActorFX obj)
     {
         LayerSystem.SetGameObjectLayer(obj.get_gameObject(), "CameraRange", 1);
         obj.get_transform().set_localPosition(new Vector3(0f, -5f, 7.25f));
         obj.get_transform().set_localRotation(Quaternion.get_identity());
     });
     return(this.mChangeSceneUID);
 }
Ejemplo n.º 18
0
    private void JustPlayfxOnScene(int uid, int templateId, Transform host, Vector3 position, Quaternion rotation, float speed, float scale, int time, bool syncNode, int bulletLife, Action <Actor, XPoint, ActorParent> bulletCallback, Action finishCallback, Action <ActorFX> loadCallback = null, bool sound3D = true, float rate = 1f, FXClassification fxClassification = FXClassification.Normal)
    {
        if (templateId == 900)
        {
            Debug.Log("JustPlayfxOnScene: " + DateTime.get_Now());
        }
        ActorFX actorFX = FXPool.Instance.Get(templateId, fxClassification == FXClassification.LowLod);

        if (actorFX == null)
        {
            return;
        }
        Fx fx = DataReader <Fx> .Get(templateId);

        if (fx == null || string.IsNullOrEmpty(fx.path))
        {
            return;
        }
        this.m_fxs.set_Item(uid, actorFX);
        actorFX.IsLodLow = (fxClassification == FXClassification.LowLod);
        actorFX.AwakeSelf();
        actorFX.uid = uid;
        if (host != null)
        {
            string text = fx.hook;
            if (fx.hook == "weapon_slot" && EntityWorld.Instance.EntSelf != null && !EntityWorld.Instance.EntSelf.IsInBattle)
            {
                text += "_city";
            }
            if (fx.hook == "weapon_slot2" && EntityWorld.Instance.EntSelf != null && !EntityWorld.Instance.EntSelf.IsInBattle)
            {
                text = "weapon_slot_city2";
            }
            if (syncNode)
            {
                if (string.IsNullOrEmpty(text))
                {
                    actorFX.Host = host;
                }
                else
                {
                    Transform transform = XUtility.RecursiveFindTransform(host, text);
                    if (transform == null)
                    {
                        Debug.LogError("mountPoint is null, mountPoint name = " + text);
                    }
                    actorFX.Host = transform;
                }
            }
            else if (string.IsNullOrEmpty(text))
            {
                if (fx.type1 == 3)
                {
                    actorFX.get_transform().set_position(host.get_position());
                }
                else
                {
                    if (actorFX.get_transform().get_parent() != host)
                    {
                        actorFX.get_transform().set_parent(host);
                    }
                    actorFX.get_transform().set_localPosition(position);
                    actorFX.get_transform().set_localRotation(rotation);
                }
            }
            else
            {
                Transform transform2 = XUtility.RecursiveFindTransform(host, text);
                if (fx.type1 == 3)
                {
                    actorFX.get_transform().set_position(transform2.get_position());
                }
                else
                {
                    if (actorFX.get_transform().get_parent() != transform2)
                    {
                        actorFX.get_transform().set_parent(transform2);
                    }
                    actorFX.get_transform().set_localPosition(position);
                    actorFX.get_transform().set_localRotation(rotation);
                }
            }
            actorFX.IsSyncNode = syncNode;
            actorFX.HostRoot   = host;
        }
        else
        {
            actorFX.get_transform().set_position(position);
            actorFX.get_transform().set_rotation(rotation);
        }
        actorFX.Scale = scale;
        actorFX.Speed = speed;
        actorFX.SetFrameRate(rate, false);
        Delay component = actorFX.get_gameObject().GetComponent <Delay>();

        if (component != null)
        {
            component.TriggerDelay();
        }
        else
        {
            actorFX.get_gameObject().SetActive(true);
        }
        actorFX.finishCallback = finishCallback;
        if (bulletCallback != null)
        {
            actorFX.bulletLife     = bulletLife;
            actorFX.bulletCallback = bulletCallback;
        }
        if (time <= 0)
        {
            time = fx.time;
        }
        if (time > 0)
        {
            actorFX.AutoDestroy = false;
            actorFX.SetTimer(time);
        }
        if (SoundManager.Instance != null)
        {
            if (sound3D)
            {
                AudioPlayer audioPlayer = actorFX.get_gameObject().AddUniqueComponent <AudioPlayer>();
                audioPlayer.RoleId = (long)actorFX.InstanceID;
                SoundManager.Instance.PlayPlayer(audioPlayer, fx.audio);
            }
            else
            {
                SoundManager.PlayUI(fx.audio, false);
            }
        }
        this.ResizeIfNeed(uid);
        this.SetSpeedIfNeed(uid);
        if (loadCallback != null)
        {
            loadCallback.Invoke(actorFX);
        }
        if (FXManager.IsPetBorn)
        {
            LayerSystem.SetGameObjectLayer(actorFX.get_gameObject(), "CameraRange", 1);
        }
    }
Ejemplo n.º 19
0
 public static void SetGameObjectLayer(GameObject root, string layerName, int ignoreType)
 {
     LayerSystem.SetGameObjectLayer(root, LayerSystem.NameToLayer(layerName), ignoreType);
 }
Ejemplo n.º 20
0
 public void ChangeLayer(string layer)
 {
     LayerSystem.SetGameObjectLayer(base.get_gameObject(), layer, 1);
 }
Ejemplo n.º 21
0
 private void SetGameObjectLayer()
 {
     LayerSystem.SetGameObjectLayer(base.get_gameObject(), this.ModelLayer, 1);
 }