Beispiel #1
0
    // Start is called before the first frame update
    void Start()

    {
        Steve           = this.gameObject;
        scriptArc       = Steve.GetComponent <SuivreSourisArc>();
        transformFleche = transform.Find("Vise/flecheAttache");


        scriptGrav = Steve.GetComponent­ <Gravite>();
        bodySteve  = gameObject.GetComponent <Rigidbody2D>();


        cadreUI           = GameObject.FindGameObjectWithTag("paintingUI").GetComponent <Image>();
        nombreFoisSinText = GameObject.FindGameObjectWithTag("paintingUIText").GetComponent <Text>();
    }
 // Start is called before the first frame update
 void Start()
 {
     scriptSuivreSouris = gameObject.GetComponent <SuivreSourisArc>();
     auSolScr           = gameObject.GetComponent <DeplacementJoueur>();
 }