Class RoundSpawner
- Namespace
- DefaultNamespace
- Assembly
- Assembly-CSharp.dll
public class RoundSpawner : MonoBehaviour
- Inheritance
-
RoundSpawner
- Inherited Members
-
- Extension Methods
-
Constructors
RoundSpawner()
Fields
possibleSpawns
public GameObject[] possibleSpawns
Field Value
- GameObject[]
spawnBudgetCosts
public IBudgetCost[] spawnBudgetCosts
Field Value
- IBudgetCost[]
testBiggestPurchase
public int testBiggestPurchase
Field Value
- int
testBudget
Field Value
- int
testFirstWaveSize
public Vector2 testFirstWaveSize
Field Value
- Vector2
testMinMaxSecondWaveWaitTime
public Vector2 testMinMaxSecondWaveWaitTime
Field Value
- Vector2
Methods
CheckIfAllHaveBudget()
public void CheckIfAllHaveBudget()
GetMonster(ref int, int)
public IBudgetCost GetMonster(ref int budget, int biggestPurchase)
Parameters
budget int
biggestPurchase int
Returns
- IBudgetCost
GetMonstersToSpawn(int, int)
public List<IBudgetCost> GetMonstersToSpawn(int budget, int biggestPurchase)
Parameters
budget int
biggestPurchase int
Returns
- List<IBudgetCost>
GetPointDistanceWeigth(Vector3, Vector3)
public float GetPointDistanceWeigth(Vector3 point, Vector3 spawn)
Parameters
point Vector3
spawn Vector3
Returns
- float
PrintMonstersPerDay(int, int)
public void PrintMonstersPerDay(int day, int times)
Parameters
day int
times int
PrintRounds(int)
public void PrintRounds(int days = 51)
Parameters
days int
SpawnMonster(IBudgetCost, PatrolPoint)
public void SpawnMonster(IBudgetCost monster, PatrolPoint p)
Parameters
monster IBudgetCost
p PatrolPoint
SpawnMonsters(List<IBudgetCost>)
public void SpawnMonsters(List<IBudgetCost> monsters)
Parameters
monsters List<IBudgetCost>
SpawnMonstersOutOfSight(List<IBudgetCost>, float)
public IEnumerator SpawnMonstersOutOfSight(List<IBudgetCost> monsters, float waitTime = 0.1)
Parameters
monsters List<IBudgetCost>
waitTime float
Returns
- IEnumerator
SpawnRound(int, int, bool)
public void SpawnRound(int budget, int biggestPurchase, bool isFirstRound)
Parameters
budget int
biggestPurchase int
isFirstRound bool
SpawnSecondRun(float, int, int)
public void SpawnSecondRun(float waitTime, int budgetForSpawn, int biggestPurchase)
Parameters
waitTime float
budgetForSpawn int
biggestPurchase int
Start()
public IEnumerator Start()
Returns
- IEnumerator