コード例 #1
0
        public static string ToIconName(this CustomDefineManager.cdmBuildTargetGroup tg)
        {
            switch (tg)
            {
            case CustomDefineManager.cdmBuildTargetGroup.iOS: return("iPhone");

#if UNITY_5_0 || UNITY_5_1 || UNITY_5_2 || UNITY_5_3 || UNITY_5_4
            case CustomDefineManager.cdmBuildTargetGroup.Nintendo3DS: return("N3DS");
#endif
            }

            return(tg.ToString());
        }
コード例 #2
0
 public static BuildTargetGroup ToBuildTargetGroup(this CustomDefineManager.cdmBuildTargetGroup tg)
 {
     //Debug.Log(tg.ToString());
     return((BuildTargetGroup)Enum.Parse(typeof(BuildTargetGroup), tg.ToString()));
 }