TurretSpawner
Members
Member |
Description |
---|---|
Methods
Method |
Description |
---|---|
Spawns a turret for the specified team. |
|
Static methods
Method |
Description |
---|---|
Get the turret prefab for the specified team and type. |
|
Spawns a turret of the specified type |
Details
-
class TurretSpawner
-
-
const GameObject gameObject
-
SpawnPoint parentSpawnPoint
-
const TurretSpawnType spawnType
-
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
-
const GameObject gameObject