public enum EWeaponType
{
WeaponGun,
WeaponRifle,
WeaponRocket,
}
这里把枚举重写下,和预制体名字一样
string assetName = weaponType.ToString();
然后枚举变量转文本
public enum EWeaponType
{
WeaponGun,
WeaponRifle,
WeaponRocket,
}
这里把枚举重写下,和预制体名字一样
string assetName = weaponType.ToString();
然后枚举变量转文本