I have this private coroutine in my WinDialogue script:
private IEnumerator ActivateStars(int count)
{
for (var index = 0; index < count; index++)
{
_stars[index].SetActive(true);
yield return new WaitForSeconds(.3f);
}
}
And somehow I’m still able to call it from my UIManager script:
_winDialogue.GetComponent<WinDialogue>().StartCoroutine("ActivateStars", starCount);
How can that be if I marked it as private?