Unity C# string 转 枚举

GameState是:枚举

 gameStata = (GameState)(System.Enum.Parse(typeof(GameState), strValue));

 

你可能感兴趣的:(C#,Unity引擎,大数据)