Class MonsterSpawner
- Namespace
- DefaultNamespace
- Assembly
- Assembly-CSharp.dll
public class MonsterSpawner : MonoBehaviour
- Inheritance
-
MonsterSpawner
- Inherited Members
-
- Extension Methods
-
Constructors
MonsterSpawner()
Fields
monster
Field Value
- string
monsterPrefab
public GameObject monsterPrefab
Field Value
- GameObject
spawnChance
[Range(0, 1)]
public float spawnChance
Field Value
- float
Methods
SpawnMonster(string)
[ConsoleCommand]
public static void SpawnMonster(string monster)
Parameters
monster
string
SpawnMonster(string, Vector3)
public static GameObject SpawnMonster(string monster, Vector3 position)
Parameters
monster
string
position
Vector3
Returns
- GameObject
SpawnWithConditionalObject(GameObject)
public void SpawnWithConditionalObject(GameObject conditionalObject)
Parameters
conditionalObject
GameObject
TestSpawnChance()
public void TestSpawnChance()
Update()