public void Awake()
    {
        if (_instance != null)
        {
            Debug.Log("Why is there already a network state manager?");
        }

        _instance = this;
    }
Beispiel #2
0
 void Start()
 {
     nsm     = new NetworkStateManager(this);
     console = gameObject.GetComponent <Console> ();
     InvokeRepeating("Loop", 0F, 0.5F);
 }
Beispiel #3
0
 public Server(NetworkStateManager nsm, MonoBehaviour monoBehaviour, string gameName)
     : base(nsm, monoBehaviour)
 {
     gameName_ = gameName;
 }
Beispiel #4
0
 public Client(NetworkStateManager nsm, MonoBehaviour monoBehaviour)
     : base(nsm, monoBehaviour)
 {
 }
Beispiel #5
0
 public NetInstance(NetworkStateManager nsm, MonoBehaviour monoBehaviour)
 {
     nsm_       = nsm;
     playerList = new NetworkPlayerList(monoBehaviour);
     chat       = new Noir.Network.ChatManager(monoBehaviour, playerList);
 }