Hello, I need help with this issue that I’m having on monodevelop.
It’s telling me “The name “CantidadDeNariguetazos…” does not exist in the current context” the two times it is mentioned in the Update function, lines 20 and 22. If anybody can think of a solution it would help a lot. Ty.
using UnityEngine;
using System.Collections;
public class papa : MonoBehaviour {
public int CantidadDeNariguetazosQueSeDaMaradonaPorDia = 0;
// Use this for initialization
void Start () {
if (CantidadDeNariguetazosQueSeDaMaradonaPorDia <= 0)
Debug.Log ("CantidadDeNariguetazosQueSeDaMaradonaPorDia es positivo");
else{
Debug.Log ("CantidadDeNariguetazosQueSeDaMaradonaPorDia es negativo");
}
}
// Update is called once per frame
void Update () {
if (Input.GetKeyDown (KeyCode.X)) {
CantidadDeNariguetazosQueSeDaMaradonaPorDia (+1);
} else if (Input.GetKeyDown (KeyCode.Z)) {
CantidadDeNariguetazosQueSeDaMaradonaPorDia (- 1);
}
}
}