Exemplo n.º 1
0
 internal TSPlayer(byte id, string name)
 {
     this.playerInfo = new TSPlayerInfo(id, name);
     this.dropCount  = 0;
     this.dropped    = false;
     this.controls   = new SerializableDictionaryIntSyncedData();
 }
Exemplo n.º 2
0
 /**
  * @brief It is not called for instances of {@link TrueSyncBehaviour}.
  **/
 public void SetGameInfo(TSPlayerInfo localOwner, int numberOfPlayers)
 {
 }
Exemplo n.º 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, "");
        }
Exemplo n.º 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.
        }