So I put a semicolon where it says to put it but for some reason the error stays even after I do clear errors so I know its not just a user error
Picture of errors in the console : Screenshot - ff871c69c54dd37e8d183ba3db63bcdf - Gyazo
here’s the script :
#pragma strict
import UnityEngine.UI;
var DamageValue = -1:
var gamemaster : GameObject;
var textobject : GameObject;
function OnTriggerEnter (info : Collider)
{
if (info.tag == "Player")
{
textobject.GetComponent.<health>().Health = +DamageValue;
textobject.GetComponent.<Text>().text = "Health: " +DamageValue;
Debug.Log("-1 Health");
Destroy(gameObject);
}
}