using UnityEngine;
public class ZScore25 : MonoBehaviour
{
void DeductPoints(int Damage)
{
GlobalScore.CurrentScore = 25;
}
}
This code came up with an error saying ‘GlobalScore.CurrentScore’ is inaccessible due to its protection level. I am not sure what to do.