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(); }
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(); }
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(); }
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); }