I am following a tutorial and have run into a problem. I have followed along exactly as the instructor is teaching but: “Error CS0246: The type or namespace name ‘Condition’ could not be found…”. I cannot find an answer that I feel answers my question, but maybe someone here can help. I have only been using Unity3D ver 5.3.5. for 1 week, and I have only been learning C# for about a month. Thanks for any help.
using UnityEngine;
using System.Collections;
public enum Buttons {
Right,
Left
}
[System.Serializable]
public class InputAxisState {
public string axisName;
public float offValue;
public Buttons button;
public Condition condition;
public bool value {
get{
var val = Input.GetAxis (axisName);
switch(condition) {
case Condition.GreaterThan:
return val > offValue;
case Condition.LessThan:
return val < RectOffset;
}
return false;
}
}
}
public class InputManager : MonoBehaviour {
public InputAxisState[] inputs;
// Use this for initialization
void Start () {
}
// Update is called once per frame
void Update () {
}
}