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; }
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); }