void Awake(){ if(GameObject.Find("LobbyGUI") != null){ sessionManager = SessionManager.Instance; FindPlatforms(); beginTime = float.PositiveInfinity; playerSpawnVectors = new List<Vector3>(); foreach(Transform location in spawnPositions){ playerSpawnVectors.Add(location.position); } hudTools = GetComponent<HUDTools>(); playersReady = new List<NetworkPlayer>(); allTimedSpawns = new HeapPriorityQueue<PowerSpawn>(30); powerPrefabs = GetComponent<PowerPrefabs>(); GameObject placementRoot = Instantiate(placementRootPrefab, placementRootPrefab.transform.position, Quaternion.identity) as GameObject; placementUI = placementRoot.GetComponent<PlacementUI>(); placementUI.Initialize(powerPrefabs); placementUI.SwitchToLive(false); placementUI.Enable(); } }