您最多选择25个主题 主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符

15 行
600 B

using Unity.Netcode;
namespace Unity.Multiplayer.Samples.Utilities
{
/// <summary>
/// Simple object that keeps track of the scene loading progress of a specific instance.
/// </summary>
public class NetworkedLoadingProgressTracker : NetworkBehaviour
{
/// <summary>
/// The current loading progress associated with the owner of this NetworkBehavior
/// </summary>
public NetworkVariable<float> Progress { get; } = new NetworkVariable<float>(0, NetworkVariableReadPermission.Everyone, NetworkVariableWritePermission.Owner);
}
}