Example #1
0
 // Use this for initialization
 void OnEnable()
 {
     pendingEvents = new List<OmniEvent> ();
     pendingDelete = new List<OmniEvent> ();
     toValidate = new List<OmniEvent>();
     instance = this;
 }
Example #2
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;
 }