GridGenerator.InstantiateFromArray Method

MyDungeon

GridGeneratorInstantiateFromArray Method

Instantiate random prefab from an array of prefabs

Namespace:  MyDungeon.DungeonGeneration.GridBasedGenerator
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
protected virtual void InstantiateFromArray(
	GameObject[] prefabs,
	float xCoord,
	float yCoord
)

Parameters

prefabs
Type: GameObject
Array of possible prefabs to instantiate
xCoord
Type: SystemSingle
X position of instantiated prefab
yCoord
Type: SystemSingle
Y position of instantiated prefab
See Also