C# Class PlayerShip, asteroids-unity3d

Inheritance: SpaceObject
显示文件 Open project: vitorog/asteroids-unity3d Class Usage Examples

Public Properties

Property Type Description
hyperspace_anim_prefab_ GameObject
hyperspace_duration_ float
hyperspace_explode_chance_ float
max_projectiles_number_ int
max_velocity_ float
projectile_ Projectile,
projectile_sound_ UnityEngine.AudioClip
projectile_speed_ float
rigid_body_ UnityEngine.Rigidbody2D
rotate_speed_ float
ship_explosion_prefab_ ParticleSystem
thrust_force_ float
thrust_particles_prefab_ ParticleSystem

Public Methods

Method Description
DestroyShip ( ) : void
FixedUpdate ( ) : void
Hyperspace ( ) : void
IsOnHyperspace ( ) : bool
IsPlayerAlive ( ) : bool
OnCollisionEnter2D ( Collision2D c ) : void
Shoot ( ) : void
Start ( ) : void
Update ( ) : void

Method Details

DestroyShip() public method

public DestroyShip ( ) : void
return void

FixedUpdate() public method

public FixedUpdate ( ) : void
return void

Hyperspace() public method

public Hyperspace ( ) : void
return void

IsOnHyperspace() public method

public IsOnHyperspace ( ) : bool
return bool

IsPlayerAlive() public method

public IsPlayerAlive ( ) : bool
return bool

OnCollisionEnter2D() public method

public OnCollisionEnter2D ( Collision2D c ) : void
c Collision2D
return void

Shoot() public method

public Shoot ( ) : void
return void

Start() public method

public Start ( ) : void
return void

Update() public method

public Update ( ) : void
return void

Property Details

hyperspace_anim_prefab_ public_oe property

public GameObject hyperspace_anim_prefab_
return GameObject

hyperspace_duration_ public_oe property

public float hyperspace_duration_
return float

hyperspace_explode_chance_ public_oe property

public float hyperspace_explode_chance_
return float

max_projectiles_number_ public_oe property

public int max_projectiles_number_
return int

max_velocity_ public_oe property

public float max_velocity_
return float

projectile_ public_oe property

public Projectile, projectile_
return Projectile,

projectile_sound_ public_oe property

public AudioClip,UnityEngine projectile_sound_
return UnityEngine.AudioClip

projectile_speed_ public_oe property

public float projectile_speed_
return float

rigid_body_ public_oe property

public Rigidbody2D,UnityEngine rigid_body_
return UnityEngine.Rigidbody2D

rotate_speed_ public_oe property

public float rotate_speed_
return float

ship_explosion_prefab_ public_oe property

public ParticleSystem ship_explosion_prefab_
return ParticleSystem

thrust_force_ public_oe property

public float thrust_force_
return float

thrust_particles_prefab_ public_oe property

public ParticleSystem thrust_particles_prefab_
return ParticleSystem