Hi, I have two scrips(js). One with a simple score keeper and another(we will call it enemy script) that has a few functions(one is die). What I have been trying to do is on the simple score keeper script is detect when the enemy script uses the function die. Thats it. I am a beginner and a little confused. So basically what I need to do is have one script be able to tell when another script is doing something. Thanks for your time. I have been looking up syntax like get component and such but I am having trouble figuring this out.
Here is my score keeper script:
var MyScore : float = 0;
function Update ()
{
guiText.text = "Score : " + MyScore;
}