public RoomLoader GetRoomLoader()
 {
     if (roomLoader == null)
     {
         roomLoader = FindObjectOfType <RoomLoader>();
     }
     return(roomLoader);
 }
Example #2
0
        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();
        }