public RoomLoader GetRoomLoader() { if (roomLoader == null) { roomLoader = FindObjectOfType <RoomLoader>(); } return(roomLoader); }
void Start() { roomLoader = GameManager.Instance.GetRoomLoader(); LivingEntity playerEntity = GameManager.Instance.GetPlayerController(); player = playerEntity.transform; playerEntity.OnDeath += OnPlayerDeath; nextCampCheckTime = timeBetweenCampingChecks + Time.time; prevCampPosition = player.position; currentWaveNumber = startingWaveNumber - 1; NextWave(); }