示例#1
0
 public static Reproduce Instance(short objType, int maxCount, int cooldown = 10000, float radius = 5)
 {
     var key = new Tuple<short, int, int, float>(objType, maxCount, cooldown, radius);
     Reproduce ret;
     if (!instances.TryGetValue(key, out ret))
         ret = instances[key] = new Reproduce(objType, maxCount, cooldown, radius);
     return ret;
 }
示例#2
0
        public static Reproduce Instance(short objType, int maxCount, int cooldown = 10000, float radius = 5)
        {
            var       key = new Tuple <short, int, int, float>(objType, maxCount, cooldown, radius);
            Reproduce ret;

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