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();
        }
Beispiel #2
0
        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;
 }
Beispiel #4
0
 public CrossWeaponAbility(SpaceshipController spaceship)
 {
     Spaceship = spaceship;
 }