Merge branch 'master' of http://192.168.0.87:10010/r/snxxz_scripts
| | |
| | |
|
| | | public void OnPlayerLoginOk()
|
| | | {
|
| | |
|
| | | GlobalTimeEvent.Instance.secondEvent -= secondEvent;
|
| | | GlobalTimeEvent.Instance.secondEvent += secondEvent;
|
| | | IsOk = true;
|
| | | SinglePackModel singPack = playerPack.GetSinglePackModel(PackType.rptEquip);
|
| | | if (singPack == null) return;
|
| | |
| | | PlayerLoginOKData();
|
| | | }
|
| | | }
|
| | |
|
| | | private float time = 0f;
|
| | | private void secondEvent()
|
| | | {
|
| | | if (!Wait)
|
| | | {
|
| | | time+= Time.deltaTime;
|
| | | if (time >= 1.5f)
|
| | | {
|
| | | Wait = true;
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | time = 0f;
|
| | | }
|
| | | }
|
| | |
|
| | | private void MountNumberPreservation()//用来对坐骑个数的保存
|
| | | {
|
| | | if (mountRedpoint.Count != 0)
|
| | |
| | |
|
| | | public void OnPlayerLoginOk()
|
| | | {
|
| | | |
| | | GlobalTimeEvent.Instance.secondEvent -= secondEvent;
|
| | | GlobalTimeEvent.Instance.secondEvent += secondEvent;
|
| | | SinglePackModel singPack = playerPack.GetSinglePackModel(PackType.rptPetPack);
|
| | | if (singPack == null) return;
|
| | | foreach (var index in singPack.GetPackModelIndexDict().Keys)
|
| | |
| | | PlayerLoginOkData();
|
| | | }
|
| | | }
|
| | | private float time = 0f;
|
| | | private void secondEvent()
|
| | | {
|
| | | if (!Wait)
|
| | | {
|
| | | time += Time.deltaTime;
|
| | | if (time >= 1.5f)
|
| | | {
|
| | | Wait = true;
|
| | | }
|
| | | }
|
| | | else
|
| | | {
|
| | | time = 0f;
|
| | | }
|
| | | }
|
| | |
|
| | | #region 发送服务端请求
|
| | | public void SendPetSwitchQuest(int petIndex)
|