enumerator type c# with ref string code example
Example 1: c# enum syntax
enum State
{
Idle,
Walking,
Running,
Jumping,
Climbing,
Attacking
}
Example 2: enum in c#
enum Itemtype
{
Use,
Loot,
Equip,
ETC
};
enum State
{
Idle,
Walking,
Running,
Jumping,
Climbing,
Attacking
}
enum Itemtype
{
Use,
Loot,
Equip,
ETC
};