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