-
Notifications
You must be signed in to change notification settings - Fork 4
unity player
Peter Klooster edited this page Mar 13, 2019
·
1 revision
// Cached reference to the controller
AirController airController;
// The current state of this player
public enum STATE { UNCLAIMED, CLAIMED, DISCONNECTED }
public STATE state = STATE.UNCLAIMED;
// Wrapper for the device nickname
public string Nickname;
// Wrapper for the device profile picture
public Texture2D ProfilePicture;
// The id of this player
public int PlayerId { get; private set; }
// The id of the connected device
public int DeviceId { get; private set; }
// Returns the device of this player
public Device Device;
// True if this player has a device
public bool HasDevice;
// Returns the input of this player
public Input Input;// Claims this player for a device
public Player Claim(int deviceId) {}
// Unclaims this player from it's device
public void UnClaim(){}
// Sets it's state to disconnected
public void Disconnect() {}