玩家类
More...
◆ SetCustomProperties()
Task LeanCloud.Play.Player.SetCustomProperties |
( |
PlayObject |
properties, |
|
|
PlayObject |
expectedValues = null |
|
) |
| |
|
inline |
设置玩家的自定义属性
- Parameters
-
properties | Properties. |
expectedValues | Expected values. |
◆ ActorId
int LeanCloud.Play.Player.ActorId |
|
getset |
房间玩家 ID
The actor identifier.
◆ CustomProperties
获取自定义属性
The custom properties.
◆ IsActive
bool LeanCloud.Play.Player.IsActive |
|
getset |
判断是不是活跃状态
true
if is active; otherwise, false
.
◆ IsLocal
bool LeanCloud.Play.Player.IsLocal |
|
get |
判断是不是当前客户端玩家
true
if is local; otherwise, false
.
◆ IsMaster
bool LeanCloud.Play.Player.IsMaster |
|
get |
判断是不是主机玩家
true
if is master; otherwise, false
.
◆ UserId
string LeanCloud.Play.Player.UserId |
|
getset |
玩家 ID
The user identifier.
The documentation for this class was generated from the following file:
- Play/Play.Unity/Assets/LeanCloud/Play/Public/Player.cs