コード例 #1
0
 public static Planewalk Instance(float radius, short? objType)
 {
     var key = new Tuple<float, short?>(radius, objType);
     Planewalk ret;
     if (!instances.TryGetValue(key, out ret))
         ret = instances[key] = new Planewalk(radius, objType);
     return ret;
 }
コード例 #2
0
        public static Planewalk Instance(float radius, short?objType)
        {
            var       key = new Tuple <float, short?>(radius, objType);
            Planewalk ret;

            if (!instances.TryGetValue(key, out ret))
            {
                ret = instances[key] = new Planewalk(radius, objType);
            }
            return(ret);
        }