コード例 #1
0
        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();
        }
コード例 #2
0
ファイル: PlayState.cs プロジェクト: aliozer/Space-Game
        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;
        }
コード例 #3
0
 public GhostSpaceshipAbility(SpaceshipController spaceship)
 {
     Spaceship = spaceship;
 }
コード例 #4
0
 public CrossWeaponAbility(SpaceshipController spaceship)
 {
     Spaceship = spaceship;
 }