C# Class AsteroidCollision

Inheritance: MonoBehaviour
显示文件 Open project: waltzaround/Cardboard-Asteroids Class Usage Examples

Public Properties

Property Type Description
explosionPrefab GameObject
health int

Public Methods

Method Description
OnCollisionEnter ( Collision collision ) : void
Start ( ) : void
Update ( ) : void
createExplosionAtPos ( Vector3 pos, float maxScale ) : void

Method Details

OnCollisionEnter() public method

public OnCollisionEnter ( Collision collision ) : void
collision Collision
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

createExplosionAtPos() public method

public createExplosionAtPos ( Vector3 pos, float maxScale ) : void
pos Vector3
maxScale float
return void

Property Details

explosionPrefab public_oe property

public GameObject explosionPrefab
return GameObject

health public_oe property

public int health
return int