Class SpaceshipController
Inheritance
SpaceshipController
Syntax
public class SpaceshipController : MonoBehaviour
Fields
currentWeapon
Declaration
public SpaceshipController.Weapon currentWeapon
Field Value
direction
Declaration
Field Value
spaceshipDebris
Declaration
public GameObject spaceshipDebris
Field Value
weaponList
Declaration
public WeaponList weaponList
Field Value
Methods
Move()
Declaration
Shoot(Boolean)
Declaration
public void Shoot(bool onMobile = false)
Parameters
Type |
Name |
Description |
Boolean |
onMobile |
|
Thrust(Single)
Declaration
public void Thrust(float power)
Parameters
Type |
Name |
Description |
Single |
power |
|
Turn(Single)
Declaration
public void Turn(float delta)
Parameters
Type |
Name |
Description |
Single |
delta |
|
UpdateWeapon(Int32)
Declaration
public void UpdateWeapon(int score)
Parameters
Type |
Name |
Description |
Int32 |
score |
|