debug fix time
This commit is contained in:
Binary file not shown.
@@ -32,6 +32,7 @@ namespace PerfectWorld.Scripts.Managers
|
||||
{
|
||||
case int value when value == EC_MsgDef.MSG_PM_PLAYERINFO:
|
||||
{
|
||||
Debug.Log(" EC_MsgDef.MSG_PM_PLAYERINFO");
|
||||
OnMsgPlayerInfo(Msg);
|
||||
break;
|
||||
}
|
||||
@@ -74,6 +75,7 @@ namespace PerfectWorld.Scripts.Managers
|
||||
break;
|
||||
}
|
||||
case CommandID.SELF_INFO_1:
|
||||
Debug.Log("SELF_INFO_1");
|
||||
cmd_self_info_1 info = GPDataTypeHelper.FromBytes<cmd_self_info_1>((byte[])Msg.dwParam1);
|
||||
HostPlayerInfo1(info);
|
||||
break;
|
||||
@@ -98,6 +100,7 @@ namespace PerfectWorld.Scripts.Managers
|
||||
|
||||
public bool HostPlayerInfo1(cmd_self_info_1 info)
|
||||
{
|
||||
Debug.Log("HostPlayerInfo1");
|
||||
bool isDoneWorldRender = false;
|
||||
bool isDoneNPCRender = false;
|
||||
Action actLoadChar = () =>
|
||||
|
||||
@@ -85,7 +85,7 @@ namespace BrewMonster.UI
|
||||
{
|
||||
|
||||
// now we have to enter the world
|
||||
/* UnityGameSession.SendProtocol(
|
||||
/*UnityGameSession.SendProtocol(
|
||||
new enterworld()
|
||||
{
|
||||
Roleid = roleInfo.roleid,
|
||||
@@ -97,11 +97,14 @@ namespace BrewMonster.UI
|
||||
Timeout = 0
|
||||
}
|
||||
);*/
|
||||
Debug.Log("OnSelectRoleComplete");
|
||||
UnityGameSession.EnterWorldAsync(roleInfo, OnEnterWorldComplete);
|
||||
}
|
||||
|
||||
private async void OnEnterWorldComplete()
|
||||
{
|
||||
Debug.Log("OnEnterWorldDelay");
|
||||
|
||||
await Task.Delay(2000);
|
||||
Logger.Log("Entered world successfully.");
|
||||
UnityGameSession.RequestInventoryAsync(() => { Logger.Log("Sent Inventory Detail Request"); });
|
||||
|
||||
@@ -62,13 +62,13 @@ public class CECHostMove
|
||||
return;
|
||||
}
|
||||
}
|
||||
m_fMoveTime = 0.0f;
|
||||
|
||||
m_CmdTimeCnt.Reset();
|
||||
|
||||
iMoveMode |= (int)MoveMode.GP_MOVE_DEAD;
|
||||
// HoangTODO: vCurPos c# unity khác với vCurPos của bên c++ kia
|
||||
|
||||
|
||||
c2s_CmdPlayerMove(vCurPos, vCurPos, iTime/* MOVECMD_INTERVAL */, fSpeed, iMoveMode, m_wMoveStamp++);
|
||||
|
||||
m_vLastSevPos = vCurPos;
|
||||
|
||||
Reference in New Issue
Block a user