Table of Contents

Class MonsterSpawner

Namespace
DefaultNamespace
Assembly
Assembly-CSharp.dll
public class MonsterSpawner : MonoBehaviour
Inheritance
MonsterSpawner
Inherited Members
Extension Methods

Constructors

MonsterSpawner()

public MonsterSpawner()

Fields

monster

public string 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()

public void Update()