private enum State
{
a, d, g, h,
}
private State state = State.a;
private void Start()
{
//打出switch,然后按下Tab键,格式会自动补齐,然后输入变量,按下Enter键,方法体就会自动补齐
switch (state)
{
case State.a:
break;
case State.d:
break;
case State.g:
break;
case State.h:
break;
default:
break;
}
}
网友评论