首先定义一个枚举类型变量
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
enum RoleType
{
Mag,
Slodier,
Wizard
}
在调用枚举类型方法
void Start (){
Role Type rt = Role Type.Mag; //Mag索引值为0;
}
首先定义一个枚举类型变量
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
enum RoleType
{
Mag,
Slodier,
Wizard
}
在调用枚举类型方法
void Start (){
Role Type rt = Role Type.Mag; //Mag索引值为0;
}