Example #1
0
 // Start is called before the first frame update
 void Start()
 {
     vieDuJoueur = GameObject.FindGameObjectWithTag("Player").GetComponent <VieDuJoueur>();
 }
Example #2
0
    public void EnvoyerDegat(int degat)
    {
        VieDuJoueur vie = GameObject.FindGameObjectWithTag("Player").GetComponent <VieDuJoueur>();

        vie.recevoirDesDegats(degat);
    }