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.