TurretSpawner

Members

Member

Description

activeTurret

gameObject

parentSpawnPoint

spawnType

transform

Methods

Method

Description

SpawnTurret(team)

Spawns a turret for the specified team.

ToString()

Static methods

Method

Description

GetPrefab(team, type)

Get the turret prefab for the specified team and type.

GetPrefabVehicle(team, type)

SpawnTurret(team, type, position, rotation)

Spawns a turret of the specified type

Details

class TurretSpawner
const Vehicle activeTurret
const GameObject gameObject
SpawnPoint parentSpawnPoint
const TurretSpawnType spawnType
const Transform transform
Vehicle SpawnTurret(Team team)

Spawns a turret for the specified team. This will throw an error if the turret spawned behaviour is not set to Scripted.

string ToString()
static GameObject GetPrefab(Team team, TurretSpawnType type)

Get the turret prefab for the specified team and type.

static Vehicle GetPrefabVehicle(Team team, TurretSpawnType type)
static Vehicle SpawnTurret(Team team, TurretSpawnType type, Vector3 position, Quaternion rotation)

Spawns a turret of the specified type