public void Start() { var spaceshipPrefab = PrefabUtil.Create <SpaceshipController>("GhostSpaceship"); _ghostSpaceShip = GameObject.Instantiate(spaceshipPrefab, Spaceship.transform.position + Spaceship.transform.up, Spaceship.transform.rotation); _ghostSpaceShip.Input = Spaceship.Input; UpdateTopAssaultWeapon(); }
public override void Start() { Controller.Input.enabled = true; var spaceshipPrefab = PrefabUtil.Create <SpaceshipController>("Spaceship"); _spaceShip = GameObject.Instantiate(spaceshipPrefab, Vector3.zero, Quaternion.identity); _spaceShip.Input = Controller.Input; _spaceShip.StartEngine(); PrepareCamera(); Controller.AstroidController.Initialize(); Controller.UIController.Exit += UIController_Exit; Controller.UIController.AbilityController.Changed += AbilityController_Changed; }
public GhostSpaceshipAbility(SpaceshipController spaceship) { Spaceship = spaceship; }
public CrossWeaponAbility(SpaceshipController spaceship) { Spaceship = spaceship; }