コード例 #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);
        }