Пример #1
0
        public Ai_Type ConvertToGrounded(Ai_Type ai)
        {
            string temp = ai.ToString();

            return((Ai_Type)Enum.Parse(typeof(Ai_Type), temp.Substring(2)));
        }
Пример #2
0
        public Ai_Type ConvertToZombie(Ai_Type ai)
        {
            string temp = ai.ToString();

            return((Ai_Type)Enum.Parse(typeof(Ai_Type), "Z_" + temp));
        }