Beispiel #1
0
 private void OnExitPve(GameObject go)
 {
     RemoteCallLogic.GetInstance().CallGS("OnExitPveMap");
     PveProcessView.GetInstance().HideProcess();
     PveAutoFight.GetInstance().Hide();
     Hide();
 }
Beispiel #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();
    }
Beispiel #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);
        }
Beispiel #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);
     }
 }
Beispiel #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);
        }
Beispiel #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);
     }
 }
Beispiel #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();
                }
            }
        }
 public void SendQuickFinishQuestMsg(int missionID)
 {
     RemoteCallLogic.GetInstance().CallGS("OnQuickFinishQuestRequest", missionID);
 }
 public void SendCancelQuestMsg(int missionID)
 {
     RemoteCallLogic.GetInstance().CallGS("OnCancelQuestRequest", missionID);
 }
Beispiel #10
0
        //删除仇人
        public void SendRemoveEnemy(ulong playerID)
        {
            MajorPlayer player = PlayerManager.GetInstance().MajorPlayer;

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

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

            RemoteCallLogic.GetInstance().CallLS("OnAddFriendByName", player.PlayerID, nickName);
        }
Beispiel #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);
 }
 public void SendInterruptCollectObj(int collectID)
 {
     RemoteCallLogic.GetInstance().CallGS("OnInterruptCollectRequest", collectID);
 }
 public void SendFinishCollectObj(int collectID, int missionID)
 {
     RemoteCallLogic.GetInstance().CallGS("OnFinishCollectRequest", collectID, missionID);
 }
 public void SendStartCollectObj(int collectID, int objID)
 {
     SceneLogic.GetInstance().MainHero.property.CmdAutoAttack = false;
     RemoteCallLogic.GetInstance().CallGS("OnStartCollectRequest", collectID, objID);
 }