Compare commits

..

1 Commits

Author SHA1 Message Date
Robin Rolf
f7c38d6958
Merge c5824f39e1 into 1187a59b18 2024-11-11 04:55:40 +02:00
3 changed files with 9 additions and 9 deletions

View File

@ -367,7 +367,7 @@ protected virtual void OnClientToServerDeltaSync(byte baselineTick, Vector3 posi
bufferSizeLimit,
new TransformSnapshot(
timestamp, // arrival remote timestamp. NOT remote time.
NetworkTime.localTime, // Unity 2019 doesn't have Time.timeAsDouble yet
Time.timeAsDouble,
position,
rotation,
scale
@ -710,8 +710,8 @@ protected virtual void OnServerToClientDeltaSync(byte baselineTick, Vector3 posi
clientSnapshots,
bufferSizeLimit,
new TransformSnapshot(
timestamp, // arrival remote timestamp. NOT remote time.
NetworkTime.localTime, // Unity 2019 doesn't have Time.timeAsDouble yet
timestamp, // arrival remote timestamp. NOT remote time.
Time.timeAsDouble,
position,
rotation,
scale

View File

@ -48,28 +48,28 @@ public class TargetRpcAttribute : Attribute
}
/// <summary>
/// Only an active server will run this method.
/// <para>Prints a warning if a client or in-active server tries to execute this method.</para>
/// Prevents clients from running this method.
/// <para>Prints a warning if a client tries to execute this method.</para>
/// </summary>
[AttributeUsage(AttributeTargets.Method)]
public class ServerAttribute : Attribute {}
/// <summary>
/// Only an active server will run this method.
/// Prevents clients from running this method.
/// <para>No warning is thrown.</para>
/// </summary>
[AttributeUsage(AttributeTargets.Method)]
public class ServerCallbackAttribute : Attribute {}
/// <summary>
/// Only an active client will run this method.
/// <para>Prints a warning if the server or in-active client tries to execute this method.</para>
/// Prevents the server from running this method.
/// <para>Prints a warning if the server tries to execute this method.</para>
/// </summary>
[AttributeUsage(AttributeTargets.Method)]
public class ClientAttribute : Attribute {}
/// <summary>
/// Only an active client will run this method.
/// Prevents the server from running this method.
/// <para>No warning is printed.</para>
/// </summary>
[AttributeUsage(AttributeTargets.Method)]