Ejemplo n.º 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;
 }
Ejemplo n.º 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);
        }