PoolGen  1.0
Public Member Functions | Properties | List of all members
SpawnpointGroup Class Reference

A group of spawnpoints meant for use with PoolManager's PoolManager.OnSpawn event More...

Inherits MonoBehaviour.

Public Member Functions

void MoveToSpawnpoint (PoolUser user)
 Move PoolUser to a random spawnpoint More...
 
void MoveToSpawnpoint (PoolUser user, int spawnpointIndex)
 Move PoolUser to a specific spawnpoint More...
 

Properties

bool RandomRotation [get, set]
 Should a random rotation be applied when the moved to a spawnpoint More...
 
List< Transform > Spawnpoints [get, set]
 List of spawnpoint transforms More...
 

Detailed Description

A group of spawnpoints meant for use with PoolManager's PoolManager.OnSpawn event

Member Function Documentation

void MoveToSpawnpoint ( PoolUser  user)

Move PoolUser to a random spawnpoint

void MoveToSpawnpoint ( PoolUser  user,
int  spawnpointIndex 
)

Move PoolUser to a specific spawnpoint

Property Documentation

bool RandomRotation
getset

Should a random rotation be applied when the moved to a spawnpoint

List<Transform> Spawnpoints
getset

List of spawnpoint transforms