public static Chasing Instance(float speed, float radius, float targetRadius, short? objType) { var key = new Tuple<float, float, float, short?>(speed, radius, targetRadius, objType); Chasing ret; if (!instances.TryGetValue(key, out ret)) ret = instances[key] = new Chasing(speed, radius, targetRadius, objType); return ret; }
public static Chasing Instance(float speed, float radius, float targetRadius, short?objType) { var key = new Tuple <float, float, float, short?>(speed, radius, targetRadius, objType); Chasing ret; if (!instances.TryGetValue(key, out ret)) { ret = instances[key] = new Chasing(speed, radius, targetRadius, objType); } return(ret); }
IfNot.Instance( Chasing.Instance(20, 40, 30, 0x0d54),