public static Swirling Instance(float radius, float speed) { var key = new Tuple<float, float>(radius, speed); Swirling ret; if (!instances.TryGetValue(key, out ret)) ret = instances[key] = new Swirling(radius, speed); return ret; }
public static Swirling Instance(float radius, float speed) { var key = new Tuple <float, float>(radius, speed); Swirling ret; if (!instances.TryGetValue(key, out ret)) { ret = instances[key] = new Swirling(radius, speed); } return(ret); }