예제 #1
0
        private void ResetFollowers()
        {
            FollowerPool.Reset();

            for (int i = 0; i < ListOfCurrentFollowers.Value.Count; i++)
            {
                FollowerData    fd = ListOfCurrentFollowers[i];
                GameObject      go = FollowerPool.GetObject();
                FollowerDisplay d  = go.GetComponent <FollowerDisplay>();
                AddDisplay(d, fd);
            }

            FollowerLayoutController.Instance.ChangeLayout();
        }
예제 #2
0
    public void QuestChanged(ActiveQuestBase a)
    {
        if (currentArea != a.Area)
        {
            currentArea = a.Area;
            Pool.Reset();
        }

        areaPoints = a.MiningPoints;
        nextSpawnDistance.Clear();
        foreach (var point in areaPoints)
        {
            nextSpawnDistance.Add(Random.Range(point.MinDistanceBetween, point.MaxDistanceBetween));
        }
    }
예제 #3
0
 void OnEnable()
 {
     pool.Reset();
     timers.Reset();
 }
예제 #4
0
 public void ClearEnemies()
 {
     StopAllCoroutines();
     DeadEnemies.Reset();
 }