您最多选择25个主题
主题必须以中文或者字母或数字开头,可以包含连字符 (-),并且长度不得超过35个字符
32 行
714 B
32 行
714 B
namespace Unity.Netcode
|
|
{
|
|
/// <summary>
|
|
/// The permission types for reading a var
|
|
/// </summary>
|
|
public enum NetworkVariableReadPermission
|
|
{
|
|
/// <summary>
|
|
/// Everyone can read
|
|
/// </summary>
|
|
Everyone,
|
|
/// <summary>
|
|
/// Only the owner and the server can read
|
|
/// </summary>
|
|
Owner,
|
|
}
|
|
|
|
/// <summary>
|
|
/// The permission types for writing a var
|
|
/// </summary>
|
|
public enum NetworkVariableWritePermission
|
|
{
|
|
/// <summary>
|
|
/// Only the server can write
|
|
/// </summary>
|
|
Server,
|
|
/// <summary>
|
|
/// Only the owner can write
|
|
/// </summary>
|
|
Owner
|
|
}
|
|
}
|