Ejemplo n.º 1
0
    void Start()
    {
        txtCompteur = GetComponent <Text>();

        //à chaque seconde appelle Compteur
        InvokeRepeating("Compteur", 1, 1);

        //va chercher l'helice
        GameObject helice = GameObject.FindGameObjectWithTag("helice");

        scriptHelice = helice.GetComponent <TourneObjet>();

        //va chercher le vehicule
        GameObject vehicule = GameObject.FindGameObjectWithTag("Vehicule");

        scriptVehicule = vehicule.GetComponent <DeplaceVehicule>();
    }
Ejemplo n.º 2
0
 // Start is called before the first frame update
 void Start()
 {
     scriptHelico = helico.GetComponent <DeplaceVehicule>();
 }