public static string UnityExtraFuncTest() { var nan = new UnityAI(); var jeck = new UnityAI() { Name = "Jeck" }; return(string.Concat("IL2.UnityExtraFuncTest:" + nan.GetUnityAIName() + " " + jeck.GetUnityAIName())); }
public static string GetUnityAIName(this UnityAI ai) { if (ai.Name == null) { return("NaN"); } else { return(ai.Name); } }