how to set custom number to enum c# 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
}