Integer multiplies itself by 3 for seemingly no reason
I'm taking a course on Udemy called "Learn To Code By Making a 2D Platformer in Unity." I got to the point where he's teaching how create a lives system. For whatever reason, whatever integer value I put for how many lives should be lost, it gets multiplied by 3, except when it randomly gets multiplied by 2. This goes away when I move the code from the Respawn function to the Update function. I have looked all over, and have not seen anyone else encounter this problem. What is happening?
Your answer
Follow this Question
Related Questions
How can i place subjects in different positions? 0 Answers
Accessing string from other script 1 Answer
Is there a way I can make one script for all my buttons in my game? 1 Answer
Finding the max Y position value in a list of game objects and assigning it to a variable? 0 Answers
How to automatically generate a new int with a specific name? 1 Answer