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