C# Class SpawnPowerUps

Inheritance: MonoBehaviour
Show file Open project: CRUKorg/SpaceSnap Class Usage Examples

Public Properties

Property Type Description
PowerUp1 UnityEngine.Rigidbody
PowerUp2 Rigidbody
PowerUp3 Rigidbody
TheCamera Camera
TheShip Transform
instance SpawnPowerUps
numOfPowerUps int
powerUpType PowerUpType

Public Methods

Method Description
CreateNextPowerUp ( ) : void
SpawnPowerUp ( float x, float z ) : void

Private Methods

Method Description
Start ( ) : void
Update ( ) : void

Method Details

CreateNextPowerUp() public method

public CreateNextPowerUp ( ) : void
return void

SpawnPowerUp() public method

public SpawnPowerUp ( float x, float z ) : void
x float
z float
return void

Property Details

PowerUp1 public property

public Rigidbody,UnityEngine PowerUp1
return UnityEngine.Rigidbody

PowerUp2 public property

public Rigidbody PowerUp2
return Rigidbody

PowerUp3 public property

public Rigidbody PowerUp3
return Rigidbody

TheCamera public property

public Camera TheCamera
return Camera

TheShip public property

public Transform TheShip
return Transform

instance public static property

public static SpawnPowerUps instance
return SpawnPowerUps

numOfPowerUps public static property

public static int numOfPowerUps
return int

powerUpType public property

public PowerUpType powerUpType
return PowerUpType