mirror of
https://github.com/MirrorNetworking/Mirror.git
synced 2024-11-18 19:10:32 +00:00
Bug fixes
This commit is contained in:
parent
ab8bdb6506
commit
fbc00c1ee9
@ -213,7 +213,7 @@ protected bool QuantizedChanged(Vector3 u, Vector3 v, float precision)
|
|||||||
// however, OnSerialize should always delta against last.
|
// however, OnSerialize should always delta against last.
|
||||||
public override void OnSerialize(NetworkWriter writer, bool initialState)
|
public override void OnSerialize(NetworkWriter writer, bool initialState)
|
||||||
{
|
{
|
||||||
Debug.Log($"OnSerialize, local time: {NetworkTime.time}");
|
//Debug.Log($"OnSerialize, local time: {NetworkTime.time}");
|
||||||
// get current snapshot for broadcasting.
|
// get current snapshot for broadcasting.
|
||||||
TransformSnapshot snapshot = Construct();
|
TransformSnapshot snapshot = Construct();
|
||||||
|
|
||||||
|
@ -200,6 +200,8 @@ public override void OnClientAuthenticate()
|
|||||||
isBot = isBot
|
isBot = isBot
|
||||||
};
|
};
|
||||||
|
|
||||||
|
Debug.Log($"Sending: U:{playerName} N:{useNinja} M:{multiplier} B:{isBot}");
|
||||||
|
|
||||||
NetworkClient.Send(authRequestMessage);
|
NetworkClient.Send(authRequestMessage);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -337,6 +337,9 @@ public override void OnStartClient()
|
|||||||
{
|
{
|
||||||
NetworkClient.RegisterPrefab(botPrefab);
|
NetworkClient.RegisterPrefab(botPrefab);
|
||||||
NetworkClient.RegisterPrefab(npcPrefab);
|
NetworkClient.RegisterPrefab(npcPrefab);
|
||||||
|
NetworkClient.RegisterPrefab(playerNinjaPrefab);
|
||||||
|
NetworkClient.RegisterPrefab(botNinjaPrefab);
|
||||||
|
NetworkClient.RegisterPrefab(npcNinjaPrefab);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
|
Loading…
Reference in New Issue
Block a user