Пример #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();
 }