Example #1
0
 public static HealGroup Instance(float radius, int amount, string group)
 {
     var key = new Tuple<float, int, string>(radius, amount, group);
     HealGroup ret;
     if (!instances.TryGetValue(key, out ret))
         ret = instances[key] = new HealGroup(radius, amount, group);
     return ret;
 }
Example #2
0
        public static HealGroup Instance(float radius, int amount, string group)
        {
            var       key = new Tuple <float, int, string>(radius, amount, group);
            HealGroup ret;

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