Beispiel #1
0
 public static Heal Instance(float radius, int amount, short? objType)
 {
     var key = new Tuple<float, int, short?>(radius, amount, objType);
     Heal ret;
     if (!instances.TryGetValue(key, out ret))
         ret = instances[key] = new Heal(radius, amount, objType);
     return ret;
 }
Beispiel #2
0
        public static Heal Instance(float radius, int amount, short?objType)
        {
            var  key = new Tuple <float, int, short?>(radius, amount, objType);
            Heal ret;

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