In my code, I have an enum that says the keyword is Unknown resolve error. The enum can’t be used, and doesn’t exist.
using UnityEngine;
using System.Collections;
public class BaseWeapon : BaseStatItem {
public enum WeaponTypes{
SWORD,
STAFF,
DAGGER,
BOW,
SHEILD,
POLEARM
}
private WeaponTypes weaponType;
public WeaponTypes WeaponType
{
get{return weaponType;}
set{weaponType = value;}
}
}
Can someone please help? I’m following this video and I have no clue what I’m doing wrong.
Unity 4.5.5f1
MonoDevelop 4.0.1