Class Player
Represents a Game Services user. Your game should never create Player object directly.
Instead, these objects are to be created and delivered to your game by Game Services API.
Inheritance
System.Object
Player
Assembly: cs.temp.dll.dll
Syntax
public class Player : IUserProfile, IComparable<Player>
Constructors
Player(String, String, Boolean, UserState)
Declaration
protected Player(string playerName, string playerId, bool isFriend, UserState state)
Parameters
Type |
Name |
Description |
System.String |
playerName |
|
System.String |
playerId |
|
System.Boolean |
isFriend |
|
UserState |
state |
|
Properties
id
Declaration
public string id { get; }
Property Value
Type |
Description |
System.String |
|
image
Declaration
public Texture2D image { get; }
Property Value
Type |
Description |
Texture2D |
|
isFriend
Declaration
public bool isFriend { get; }
Property Value
Type |
Description |
System.Boolean |
|
state
Declaration
public UserState state { get; }
Property Value
Type |
Description |
UserState |
|
userName
Declaration
public string userName { get; }
Property Value
Type |
Description |
System.String |
|
Methods
CompareTo(Player)
Declaration
public int CompareTo(Player other)
Parameters
Type |
Name |
Description |
Player |
other |
|
Returns
Type |
Description |
System.Int32 |
|
Equals(Player)
Declaration
public bool Equals(Player obj)
Parameters
Type |
Name |
Description |
Player |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
Equals(Object)
Declaration
public override bool Equals(object obj)
Parameters
Type |
Name |
Description |
System.Object |
obj |
|
Returns
Type |
Description |
System.Boolean |
|
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|