Exemplo n.º 1
0
        public Ai_Type ConvertToGrounded(Ai_Type ai)
        {
            string temp = ai.ToString();

            return((Ai_Type)Enum.Parse(typeof(Ai_Type), temp.Substring(2)));
        }
Exemplo n.º 2
0
        public Ai_Type ConvertToZombie(Ai_Type ai)
        {
            string temp = ai.ToString();

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