Esempio n. 1
0
    void Start()
    {
        crewGauge   = FindObjectOfType(typeof(CrewGauge)) as CrewGauge;
        fuelGauge   = FindObjectOfType(typeof(FuelGauge)) as FuelGauge;
        energyGauge = FindObjectOfType(typeof(EnergyGauge)) as EnergyGauge;

        // player ship
        playerShip = Instantiate(playerShipPrefab) as SolarSystemPlayerShip;
    }
Esempio n. 2
0
    void Start()
    {
        crewGauge = FindObjectOfType(typeof(CrewGauge)) as CrewGauge;
        fuelGauge = FindObjectOfType(typeof(FuelGauge)) as FuelGauge;
        energyGauge = FindObjectOfType(typeof(EnergyGauge)) as EnergyGauge;

        // player ship
        playerShip = Instantiate(playerShipPrefab) as SolarSystemPlayerShip;
    }