public static IHero Use(IHero hero) { IHero result = null; //if (hero is DH) //{ // result = new DH(); //} //else if (hero is POM) //{ // result = new POM(); //} result = hero.Clone(); return(result); }
public static IHero Use(IHero hero) { IHero result = null; //if (hero is DH) //{ // result = new DH(); //} //else if (hero is POM) //{ // result = new POM(); //} result = hero.Clone(); return(result); }