예제 #1
0
        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);
        }
예제 #2
0
        public static GameTower GetTower(Type type, params object[] arguments)
        {
            GameTower interpolator = Activator.CreateInstance(type, arguments) as GameTower;

            return(interpolator);
        }
예제 #3
0
        public static GameTower GetTower(Type type, double[] x, double[] y)
        {
            GameTower interpolator = Activator.CreateInstance(type, x, y) as GameTower;

            return(interpolator);
        }