It needs to be:
public void Survival()
{
//your code
}
The "public" factor before the method shows Unity that the method can be called outside of that script.
↧