using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TestEnum : MonoBehaviour
{
void Start()
{
test();
}
public void test()
{
tt t1 = tt.测试;
int t2 = 2;
int t3 = 3;
Debug.Log(t1.ToString());
Debug.Log((tt)t2);
Debug.Log((tt)t3);
}
enum tt
{
测试 = 3,
}
}
测试
2
测试