예제 #1
0
        public static string UnityExtraFuncTest()
        {
            var nan  = new UnityAI();
            var jeck = new UnityAI()
            {
                Name = "Jeck"
            };

            return(string.Concat("IL2.UnityExtraFuncTest:" + nan.GetUnityAIName() + "   " + jeck.GetUnityAIName()));
        }
예제 #2
0
 public static string GetUnityAIName(this UnityAI ai)
 {
     if (ai.Name == null)
     {
         return("NaN");
     }
     else
     {
         return(ai.Name);
     }
 }