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

View File

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