Exemple #1
0
    /// <summary>
    /// Retrieve car information upon user selection
    /// </summary>
    private void loadCar()
    {
        //update the image, name, size
        carImage.GetComponent <RawImage>().texture = Assets2D.getCarTexture(MyCarIndex);
        carName.GetComponent <Text>().text         = Assets2D.getCarNames(MyCarIndex);
        TrunkSize = Assets2D.getTrunkSizes(MyCarIndex);

        //update 3D layout
    }
Exemple #2
0
 // Start is called before the first frame update
 void Start()
 {
     ActiveInstance = this;
 }