Exemplo n.º 1
0
 void OnEnable()
 {
     Network.natFacilitatorIP = "jessewatson.org";
     MasterServer.ipAddress = "jessewatson.org";
     Application.runInBackground = true;
     instance = this;
     SpawnPoints = new List<Vector2>();
     SpawnedObjectsNew = new List<OmniObject>();
     openSlots = new List<int>();
     eventManager = GameObject.FindGameObjectWithTag("GameController").GetComponent<OmniEvents>();
     networkManager = GetComponent<OmniNetwork>();
     localManager = GetComponent<OmniLocal>();
     physTest = GetComponent<Rigidbody2D>();
     netView = networkManager.networkView;
 }
Exemplo n.º 2
0
 void OnEnable()
 {
     connectedClients = new Dictionary<NetworkPlayer, ClientControllable>();
     updateList = new List<OmniObject>();
     instance = this;
 }
Exemplo n.º 3
0
 void Start()
 {
     network = GetComponent<OmniNetwork>();
 }