Esempio n. 1
0
    // Start is called before the first frame update
    void Start()
    {
        carScript = gameObject.GetComponentInParent <MiCarro>();

        player = GetComponent <Transform>();
        // player = GetComponent<Transform>();
    }
Esempio n. 2
0
 // Start is called before the first frame update
 void Start()
 {
     //speedDis = GetComponent<TextMeshProUGUI>();
     carScript = GetComponentInParent <MiCarro>();
 }