Exemple #1
0
 public BirdsState()
 {
     birdSpawner       = (GameObject)Resources.Load("BirdSpawner");
     birdTightSpawner  = (GameObject)Resources.Load("BirdTightSpawner");
     birdBomberSpawner = (GameObject)Resources.Load("BirdBomberSpawner");
     hpSpawner         = (GameObject)Resources.Load("HpSpawner");
     spawnerOffset     = new Vector3(57, 5, 0);
     sd = ShipDriver.Get();
 }
Exemple #2
0
 public DropoffState()
 {
     dockingShip = (GameObject)Resources.Load("DockingShip");
     //birdSpawner = (GameObject)Resources.Load("BirdSpawner");
     //birdTightSpawner = (GameObject)Resources.Load("BirdTightSpawner");
     //birdBomberSpawner = (GameObject)Resources.Load("BirdBomberSpawner");
     //hpSpawner = (GameObject)Resources.Load("HpSpawner");
     spawnerOffset = new Vector3(50, 5, 0);
     sd            = ShipDriver.Get();
 }
Exemple #3
0
 public LearnEngineState(int ram, int shoot)
 {
     ramCount              = ram;
     shootCount            = shoot;
     engineTrainingSpawner = (GameObject)Resources.Load("EngineTrainingSpawner");
     shootTrainingSpawner  = (GameObject)Resources.Load("ShootTrainingSpawner");
     spawnerOffset         = new Vector3(57, 5, 0);
     sd = ShipDriver.Get();
     cd = CaptainDriver.Get();
 }
Exemple #4
0
 public IntroState()
 {
     sd = ShipDriver.Get();
     cd = CaptainDriver.Get();
 }
 public LearnMovementState()
 {
     sd = ShipDriver.Get();
     cd = CaptainDriver.Get();
 }
 void Start()
 {
     ss = GetComponent <StraightSpin>();
     ShipDriver.Get().EnginePowerChanged.AddListener(OnEngineChanged);
 }