c# enumeraton of data types code example
Example 1: c# enum syntax
enum State
{
Idle,
Walking,
Running,
Jumping,
Climbing,
Attacking
}
Example 2: enums c#
enum Season
{
Spring,
Summer,
Autumn,
Winter
}
enum State
{
Idle,
Walking,
Running,
Jumping,
Climbing,
Attacking
}
enum Season
{
Spring,
Summer,
Autumn,
Winter
}