public static GameTower GetInterpolator(string method, params object[] arguments) { GameTower tower = null; Type tower_type = GetTowerType(method); if (tower_type != null) { tower = Activator.CreateInstance(tower_type, arguments) as GameTower; } return(tower); }
public static GameTower GetTower(Type type, params object[] arguments) { GameTower interpolator = Activator.CreateInstance(type, arguments) as GameTower; return(interpolator); }
public static GameTower GetTower(Type type, double[] x, double[] y) { GameTower interpolator = Activator.CreateInstance(type, x, y) as GameTower; return(interpolator); }