예제 #1
0
 private void OnExitPve(GameObject go)
 {
     RemoteCallLogic.GetInstance().CallGS("OnExitPveMap");
     PveProcessView.GetInstance().HideProcess();
     PveAutoFight.GetInstance().Hide();
     Hide();
 }
예제 #2
0
    private void InitCoreManager()
    {
        RegisterLog();
        DontDestroyOnLoad(this.gameObject);
        log.Debug("Start game application...");
        GameWorld.GetInstance();
        LoggerView.GetInstance();
        CameraLayerManager.GetInstance();
        AssetLoader.GetInstance();
        ViewCameraManager.GetInstance().Init();
        LayerManager.GetInstance().Init();
        RemoteCallLogic.GetInstance();
        NGUIManager.GetInstance();

        LoginController.GetInstance();
        SceneLogic.GetInstance();
        PlayerController.GetInstance();
        BagLogic.GetInstance();
        NpcLogic.GetInstance();
        TimeManager.GetInstance();
        ViewManager.GetInstance();
        gameObject.AddComponent("CronJob");
        LoadResource();

        //ActiveRush.InitFx();



        AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath("effect_skill_badao03_xuanfengzhan_g2"));
        AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath("effect_skill_badao01_lipihuashantexiao"));
        AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath("effect_skill_badao03_xuanfengzhan"));
        AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath("effect_skill_badao03_xuanfengzhan_mingzhong2"));

        AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath("effect_skill_badao04_yuanyuewandao_mingzhong"));
        AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath("effect_skill_badao04_yuanyuewandao_mingzhong_g"));
        AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath("effect_skill_badao04_yuanyuewandao_wuqifeixing"));
        AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath("effect_skill_badao04_yuanyuewandao"));

        AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath("effect_skill_badao02_nuzhanbahuang_gongji"));
        AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath("effect_skill_daobin_06_nuhou_shifa"));

        AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath("effect_skill_daobin_05_zhenfei"));
        AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath("effect_skill_daobin_04_chongfeng"));
        AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath("effect_skill_daobin_04_chongfeng_mingzhong"));

        AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath("effect_guaiwusiwang2"));

        AssetLoader.GetInstance().PreLoad(URLUtil.GetEffectPath("effect_levelup"));

        AssetLoader.GetInstance().Load(URLUtil.GetEffectPath("effect_guangquan_yellow"), PLAYER_SEL_LoadComplete, AssetType.BUNDLER);
        AssetLoader.GetInstance().Load(URLUtil.GetEffectPath("effect_guangquan2_red"), NPC_SEL_LoadComplete, AssetType.BUNDLER);

        PreLoad.GetInstance().OnEnterScene();
        SelecterManager.GetInstance();
    }
예제 #3
0
        public static void Carry(int mapID, Vector3 desPos)
        {
            float dis = KingSoftMath.CheckDistance(SceneLogic.GetInstance().MainHero.Position, desPos / 100);

            if (dis <= 8 && SceneLogic.GetInstance().mapId == mapID)
            {
                Debug.Log("已经在目标点的范围内了,不需要传送");
                return;
            }
            AnimationComponent.OperaWalking = false;
            RemoteCallLogic.GetInstance().CallGS("OnChangeMap", mapID, (int)desPos.x, (int)desPos.z, (int)desPos.y);
        }
예제 #4
0
 private void OnIntensifyClickHandler(GameObject go)
 {
     recordIndex = selectIndex;
     if (GetEquipInfo().CurStrengthenLv >= maxStrngthenLevList[maxStrngthenLevList.Count - 1])
     {
         Debug.Log("已经强化到最高");
     }
     else
     {
         RemoteCallLogic.GetInstance().CallGS("OnEquipStrengthen", GetEquipInfo().PutWhere);
     }
 }
예제 #5
0
        public void PickUpDrop(SceneEntity obj)
        {
            if (obj.property.sceneObjType != KSceneObjectType.sotDoodad)
            {
                return;
            }
            if (obj.property.doodadObjType != KDoodadType.dddDrop)
            {
                return;
            }

            RemoteCallLogic.GetInstance().CallGS("OnPickUpDrop", (int)obj.property.Id);
        }
예제 #6
0
 public void OnShortCutChange(int _index, SHORTCUTITEM _type, int _itemId)
 {
     if (_type == SHORTCUTITEM.ITEM)
     {
         RemoteCallLogic.GetInstance().CallGS("OnShortCutChange", _index + 1, 1, _itemId);
     }
     else if (_type == SHORTCUTITEM.SKILL)
     {
         RemoteCallLogic.GetInstance().CallGS("OnShortCutChange", _index + 1, 2, _itemId);
     }
     else
     {
         RemoteCallLogic.GetInstance().CallGS("OnShortCutChange", _index + 1, 0, 0);
     }
 }
예제 #7
0
        public override void FixedUpdate()
        {
            if (SceneView.GetInstance().setting.Type != (uint)KMapType.mapPVEMap)
            {
                Hide();
                return;
            }

            if (!viewGo.activeSelf)
            {
                return;
            }

            if (showTime > 0)
            {
                showTime--;
                if (showTime == 0)
                {
                    RemoteCallLogic.GetInstance().CallGS("OnExitPveMap");
                    Hide();
                }
            }
        }
예제 #8
0
 public void SendQuickFinishQuestMsg(int missionID)
 {
     RemoteCallLogic.GetInstance().CallGS("OnQuickFinishQuestRequest", missionID);
 }
예제 #9
0
 public void SendCancelQuestMsg(int missionID)
 {
     RemoteCallLogic.GetInstance().CallGS("OnCancelQuestRequest", missionID);
 }
예제 #10
0
        //删除仇人
        public void SendRemoveEnemy(ulong playerID)
        {
            MajorPlayer player = PlayerManager.GetInstance().MajorPlayer;

            RemoteCallLogic.GetInstance().CallLS("OnRemoveEnemy", player.PlayerID, playerID);
        }
예제 #11
0
        //通过好友申请消息增加好友
        public void SendAddFriendByMsg(ulong playerID)
        {
            MajorPlayer player = PlayerManager.GetInstance().MajorPlayer;

            RemoteCallLogic.GetInstance().CallLS("OnAddFriendByMsg", player.PlayerID, playerID);
        }
예제 #12
0
        //发送申请好友消息通过昵称
        public void SendAddFriendByName(string nickName)
        {
            MajorPlayer player = PlayerManager.GetInstance().MajorPlayer;

            RemoteCallLogic.GetInstance().CallLS("OnAddFriendByName", player.PlayerID, nickName);
        }
예제 #13
0
 public void OnGetGiftBag(GameObject go)
 {
     //go == UnGainBtn not go != RewardListItem
     RemoteCallLogic.GetInstance().CallGS("OnGetGiftBag", GiftData.nID);
     EventDispatcher.GameWorld.Regist(ControllerCommand.GIFT_ITEM_UPDATE, UpdateGiftItem);
 }
예제 #14
0
 public void SendInterruptCollectObj(int collectID)
 {
     RemoteCallLogic.GetInstance().CallGS("OnInterruptCollectRequest", collectID);
 }
예제 #15
0
 public void SendFinishCollectObj(int collectID, int missionID)
 {
     RemoteCallLogic.GetInstance().CallGS("OnFinishCollectRequest", collectID, missionID);
 }
예제 #16
0
 public void SendStartCollectObj(int collectID, int objID)
 {
     SceneLogic.GetInstance().MainHero.property.CmdAutoAttack = false;
     RemoteCallLogic.GetInstance().CallGS("OnStartCollectRequest", collectID, objID);
 }