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(); }
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)); } }
void OnEnable() { pool.Reset(); timers.Reset(); }
public void ClearEnemies() { StopAllCoroutines(); DeadEnemies.Reset(); }