hi all,
i have do it in C#
GameObject asso = GameObject.Find("First Person Controller");
Vitaplayer vitaplayer = asso.GetComponent<Vitaplayer>();
vitaplayer.health -= danno;
but i need in javascript
how i can do it?
because in the second row unity give me an error…
thanks