- Home /
Project Not working after 1 day and no changes.
I made this code the other day and it worked perfectly. I came back the next morning and all of a sudden it doesn't, and I can't figure out why.
public class GameManager : MonoBehaviour { public int values; public bool papers; public bool rock; public bool scisor;
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
if (Input.GetKeyDown(KeyCode.E))
{
papers = true;
}
}
} It works when I put in "rock" But whenever I type in "papers" and "scisors" It doesn't become true in the inspector.
Answer by RamaKrishna39 · May 17 at 12:24 PM
There is no complex thing in it to stop working. Just check the name of variables and try again, it works for me.
Your answer
Follow this Question
Related Questions
How can i reverse all the booleans in a method? 2 Answers
Scavenger Hunt List Bools Question 1 Answer
GetComponent, set boolean to true but it willn't revert 3 Answers
Set a Bool Through Function 1 Answer
Unity UI Button Switch Bool? 2 Answers