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