internal TSPlayer(byte id, string name) { this.playerInfo = new TSPlayerInfo(id, name); this.dropCount = 0; this.dropped = false; this.controls = new SerializableDictionaryIntSyncedData(); }
/** * @brief It is not called for instances of {@link TrueSyncBehaviour}. **/ public void SetGameInfo(TSPlayerInfo localOwner, int numberOfPlayers) { }
public void SetGameInfo(TSPlayerInfo localOwner, int numberOfPlayers) { this.trueSyncBehavior.SetGameInfo(localOwner, numberOfPlayers); }
// MonoBehaviour's interface void Awake() { m_Instance = this; m_NullPlayerInfo = new TSPlayerInfo(0, ""); }
/** * @brief It is not called for instances of {@link TrueSyncBehaviour}. **/ public void SetGameInfo(TSPlayerInfo i_LocalOwner, int i_NumberOfPlayers) { }
// ITrueSyncBehaviour's interface public void SetGameInfo(TSPlayerInfo localOwner, int numberOfPlayers) { // Nothing to do. Exactly like a TrueSyncBehaviour. }