private void SetCameraRotateBlur(int sceneId)
 {
     if (MySceneManager.IsMainScene(sceneId) && this.m_MobileBlurBlurryCulling != null)
     {
         this.m_MobileBlurBlurryCulling.set_enabled(false);
     }
 }
Beispiel #2
0
 private void LoadSceneEnd(int sceneID)
 {
     if (MySceneManager.IsMainScene(sceneID))
     {
         Utils.EnableRoleLight(false);
     }
 }
 public void ShowBattleStart2(Action action = null)
 {
     if (Loading.Instance.isCurrentHasLoading)
     {
         if (action != null)
         {
             action.Invoke();
         }
         return;
     }
     if (!MySceneManager.IsMainScene(MySceneManager.Instance.CurSceneID))
     {
         FXSpineManager.Instance.PlaySpine(3503, UINodesManager.T4RootOfSpecial, string.Empty, 17000, null, "UI", 0f, 140f, 1f, 1f, false, FXMaskLayer.MaskState.None);
         FXSpineManager.Instance.PlaySpine(3504, UINodesManager.T4RootOfSpecial, string.Empty, 17000, action, "UI", 0f, 140f, 1f, 1f, false, FXMaskLayer.MaskState.None);
     }
     else
     {
         FXSpineManager.Instance.PlaySpine(3507, UINodesManager.T4RootOfSpecial, string.Empty, 17000, null, "UI", 0f, 140f, 1f, 1f, false, FXMaskLayer.MaskState.None);
         FXSpineManager.Instance.PlaySpine(3508, UINodesManager.T4RootOfSpecial, string.Empty, 17000, action, "UI", 0f, 140f, 1f, 1f, false, FXMaskLayer.MaskState.None);
     }
     TimerHeap.AddTimer(50u, 0, delegate
     {
         this.DeleteSpine(this.fx_battlestart01, true);
         this.DeleteSpine(this.fx_battlestart02, true);
     });
 }
Beispiel #4
0
 public void LoadSceneEnd(int sceneID)
 {
     if (MySceneManager.IsMainScene(sceneID))
     {
         this.CreateSceneMonsterNPC();
     }
 }
Beispiel #5
0
 private void ShowByScene(int sceneId)
 {
     if (MySceneManager.IsMainScene(sceneId))
     {
         this.ShowAsMainScene();
     }
     else
     {
         InstanceType currentInstanceType = InstanceManager.CurrentInstanceType;
         if (currentInstanceType == InstanceType.DungeonNormal || currentInstanceType == InstanceType.DungeonElite || currentInstanceType == InstanceType.ChangeCareer)
         {
             this.ShowAsInstanceType1();
         }
         else if (currentInstanceType == InstanceType.DungeonMutiPeople || currentInstanceType == InstanceType.GuildWar || currentInstanceType == InstanceType.Defence || currentInstanceType == InstanceType.Bounty || currentInstanceType == InstanceType.WildBossMulti)
         {
             this.ShowAsInstanceType2();
         }
         else if (currentInstanceType == InstanceType.Arena || currentInstanceType == InstanceType.GangFight)
         {
             this.ShowAsInstanceType4();
         }
         else if (currentInstanceType == InstanceType.Hook)
         {
             this.ShowAsInstanceType5();
         }
         else
         {
             this.ShowAsInstanceType3();
         }
     }
 }
Beispiel #6
0
 public void SwitchMapResp(short state, SwitchMapRes down = null)
 {
     try
     {
         Debug.Log("切换地图: " + down.newMapId);
         if (state != 0)
         {
             StateManager.Instance.StateShow(state, 0);
             throw new Exception("state :" + state);
         }
         if (EntityWorld.Instance.EntSelf != null && EntityWorld.Instance.ActSelf)
         {
             EntityWorld.Instance.AddPosRecord(EntityWorld.Instance.EntSelf.ID, EntityWorld.Instance.EntSelf.Actor.FixTransform.get_position(), -1);
         }
         EventDispatcher.Broadcast(SceneManagerEvent.ClearSceneDependentLogic);
         if (MySceneManager.IsCityWildScene(down.oldMapId) || MySceneManager.IsCityWildScene(down.newMapId))
         {
             down.selfObj.pos = null;
         }
         if (EntityWorld.Instance.EntSelf != null)
         {
             EntityWorld.Instance.EntSelf.SetDataByMapObjInfo(down.selfObj, false, down.transformId);
         }
         if (down.oldMapId != down.newMapId || (down.oldMapId == down.newMapId && MySceneManager.IsMainScene(down.newMapId)))
         {
             this.IsSceneExist  = false;
             this.lastSceneType = this.curSceneType;
             this.curSceneType  = ((!MySceneManager.IsMainScene(down.newMapId)) ? SceneType.Battle : SceneType.City);
             Loading.Instance.OnStartLoad(down.newMapId, down.otherObjs);
         }
         else
         {
             AOIService.Instance.SetMapArrivedObj(down.otherObjs);
         }
     }
     catch (Exception ex)
     {
         DialogBoxUIViewModel.Instance.ShowAsConfirm("错误", string.Format("切换地图时出错 :{0} {3} {1} version: {2}", new object[]
         {
             DateTime.get_Now().ToString("yyyy/MM/dd HH:mm:ss"),
             down.newMapId,
             GameManager.Instance.GetLocalVersionsString(),
             state
         }), null, "确定", "button_orange_1", UINodesManager.T4RootOfSpecial);
         throw new MySceneManager.SwitchMapException(string.Concat(new object[]
         {
             "mapID:",
             down.newMapId,
             " state:",
             state
         }), ex);
     }
 }
Beispiel #7
0
 public void EnteredCity()
 {
     if (MySceneManager.IsMainScene(MySceneManager.Instance.CurSceneID))
     {
         TaskNPCManager.Instance.InitNPC();
         HearthNPCManager.Instance.InitNPC();
         CollectionNPCManager.Instance.InitNPC();
         if (MySceneManager.Instance.IsCurrentGuildWarCityScene)
         {
             GuildWarMineNPCManager.Instance.InitNPC();
         }
     }
 }
 private void LoadSceneEnd(int sceneID)
 {
     if (!MySceneManager.IsMainScene(sceneID))
     {
         return;
     }
     if (!GangFightManager.Instance.IsWinLastFight)
     {
         return;
     }
     this.IsWinLastFight = false;
     GangFightManager.Instance.SendStartGangFight();
 }
Beispiel #9
0
 private void OnSceneRelatedUnload(int lastId, int nextId)
 {
     if (MySceneManager.IsMainScene(nextId))
     {
         ReleaseResOfUI.ReleaseResInInstance();
     }
     else
     {
         ReleaseResOfUI.ReleaseResInCity();
     }
     AssetManager.AssetOfTPManager.ReleaseNoRef();
     AssetManager.ReleaseNoRef(true);
 }
 public void ShowBattleStart1(int sceneID, Action action = null)
 {
     if (!MySceneManager.IsMainScene(sceneID))
     {
         TownUI.IsOpenAnimationOn = true;
         UIManagerControl.Instance.HideAll();
         this.fx_battlestart01 = FXSpineManager.Instance.PlaySpine(3501, UINodesManager.T4RootOfSpecial, string.Empty, 17000, null, "UI", 0f, 140f, 1f, 1f, false, FXMaskLayer.MaskState.None);
         this.fx_battlestart02 = FXSpineManager.Instance.PlaySpine(3502, UINodesManager.T4RootOfSpecial, string.Empty, 17000, action, "UI", 0f, 140f, 1f, 1f, false, FXMaskLayer.MaskState.None);
     }
     else
     {
         BattleUI.IsOpenAnimationOn = true;
         UIManagerControl.Instance.HideAll();
         this.fx_battlestart01 = FXSpineManager.Instance.PlaySpine(3505, UINodesManager.T4RootOfSpecial, string.Empty, 17000, null, "UI", 0f, 140f, 1f, 1f, false, FXMaskLayer.MaskState.None);
         this.fx_battlestart02 = FXSpineManager.Instance.PlaySpine(3506, UINodesManager.T4RootOfSpecial, string.Empty, 17000, action, "UI", 0f, 140f, 1f, 1f, false, FXMaskLayer.MaskState.None);
     }
 }
Beispiel #11
0
    public static List <float> GetMapPointB()
    {
        if (MySceneManager.IsMainScene(MySceneManager.Instance.CurSceneID))
        {
            return(null);
        }
        if (InstanceManager.CurrentInstanceType == InstanceType.Arena)
        {
            return(null);
        }
        if (InstanceManager.CurrentInstanceType == InstanceType.GangFight)
        {
            return(null);
        }
        if (InstanceManager.CurrentInstanceType == InstanceType.ClientTest)
        {
            return(null);
        }
        if (InstanceManager.CurrentInstanceType == InstanceType.ServerTest)
        {
            return(null);
        }
        if (InstanceManager.CurrentInstanceType == InstanceType.SurvivalChallenge)
        {
            return(null);
        }
        string   text     = InstanceManager.CurrentInstanceDataID.ToString() + InstanceManager.CurrentInstanceBatch.ToString();
        int      num      = int.Parse(text);
        BoCiBiao boCiBiao = null;

        if (DataReader <BoCiBiao> .Contains(num))
        {
            boCiBiao = DataReader <BoCiBiao> .Get(num);
        }
        else if (DataReader <BoCiBiao> .Contains(num - 1))
        {
            boCiBiao = DataReader <BoCiBiao> .Get(num - 1);
        }
        return((boCiBiao == null || boCiBiao.pointB.get_Count() != 3) ? null : boCiBiao.pointB);
    }