private void Start() { if (NodeNum == 1) { Unlocked = true; } //GET RESOURCES infoFile = Resources.Load("nodesinfo", typeof(TextAsset)) as TextAsset; info = infoFile.text.Split('\n'); //SET NODE INFO thisPassword = info[NodeInfoStartIndex]; thisCredential = info[NodeInfoStartIndex + 1]; thisData = info[NodeInfoStartIndex + 2]; thisRegion = info[NodeInfoStartIndex + 3]; #region RANDOM :D int newRandom = Random.Range(0, 15); switch (newRandom) { default: SecurityLevel = 2; break; case 8: case 9: case 10: case 11: case 12: SecurityLevel = 3; break; case 13: case 14: case 15: SecurityLevel = 1; break; } #endregion Port = new int[SecurityLevel]; //of this depend how many ways the node can be accessed for (int _port = 0; _port < Port.Length; _port++) { myCreator.RequestPort(_port, this); } }