Ejemplo n.º 1
0
    protected void Start()
    {
        hull = FindObjectOfType(typeof(Hull)) as Hull;
        inventory = FindObjectOfType(typeof(Inventory)) as Inventory;
        crewGauge = FindObjectOfType(typeof(CrewGauge)) as CrewGauge;
        fuelGauge = FindObjectOfType(typeof(FuelGauge)) as FuelGauge;
        energyGauge = FindObjectOfType(typeof(EnergyGauge)) as EnergyGauge;

        massGauge = FindObjectOfType(typeof(MassGauge)) as MassGauge;
        powerGauge = FindObjectOfType(typeof(PowerGauge)) as PowerGauge;
        accelerationGauge = FindObjectOfType(typeof(AccelerationGauge)) as AccelerationGauge;
        fuelConsumptionGauge = FindObjectOfType(typeof(FuelConsumptionGauge)) as FuelConsumptionGauge;
    }
Ejemplo n.º 2
0
    protected void Start()
    {
        hull        = FindObjectOfType(typeof(Hull)) as Hull;
        inventory   = FindObjectOfType(typeof(Inventory)) as Inventory;
        crewGauge   = FindObjectOfType(typeof(CrewGauge)) as CrewGauge;
        fuelGauge   = FindObjectOfType(typeof(FuelGauge)) as FuelGauge;
        energyGauge = FindObjectOfType(typeof(EnergyGauge)) as EnergyGauge;

        massGauge            = FindObjectOfType(typeof(MassGauge)) as MassGauge;
        powerGauge           = FindObjectOfType(typeof(PowerGauge)) as PowerGauge;
        accelerationGauge    = FindObjectOfType(typeof(AccelerationGauge)) as AccelerationGauge;
        fuelConsumptionGauge = FindObjectOfType(typeof(FuelConsumptionGauge)) as FuelConsumptionGauge;
    }