Beispiel #1
0
 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)
 {
 }
Beispiel #3
0
 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, "");
        }
Beispiel #5
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.
        }