Hey everyone,
Going back over this to help my students get a working lives system setup. What I have so far is the following. It’s in the LoseCollider script. I can’t figure out how to reset the Ball at this point. I’ve tried grabbing the object and manipulating the transform to no avail. Any ideas?:
void OnTriggerEnter2D(Collider2D trigger)
{
lives--;
Debug.Log(lives);
if(lives <= 0)
{
Debug.Log("Lost");
lives = 3;
levelManager.LoadLevel("lose");
} else
{
}
}