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