Class SpawnLocation
Represents a spawn location for a Role.
public class SpawnLocation : IPosition
- Inheritance
-
SpawnLocation
- Implements
- Inherited Members
- Extension Methods
Constructors
SpawnLocation(RoleTypeId, Vector3, float)
Initializes a new instance of the SpawnLocation class.
public SpawnLocation(RoleTypeId roleType, Vector3 position, float horizontalRotation)
Parameters
roleType
RoleTypeIdThe PlayerRoles.RoleTypeId this spawn is for.
position
Vector3The UnityEngine.Vector3 position of the spawn.
horizontalRotation
floatThe horizontal rotation of the spawn.
Properties
HorizontalRotation
Gets the horizontal rotation of the spawn.
public float HorizontalRotation { get; }
Property Value
Position
Gets the position of the spawn.
public Vector3 Position { get; }
Property Value
- Vector3
RoleType
Gets the PlayerRoles.RoleTypeId the spawn is for.
public RoleTypeId RoleType { get; }
Property Value
- RoleTypeId