public static RingAttack Instance(int count, float radius = 0, float offset = 0, int projectileIndex = 0) { var key = new Tuple<int, float, float, int>(count, radius, offset, projectileIndex); RingAttack ret; if (!instances.TryGetValue(key, out ret)) ret = instances[key] = new RingAttack(count, radius, offset, projectileIndex); return ret; }
public static RingAttack Instance(int count, float radius = 0, float offset = 0, int projectileIndex = 0) { var key = new Tuple <int, float, float, int>(count, radius, offset, projectileIndex); RingAttack ret; if (!instances.TryGetValue(key, out ret)) { ret = instances[key] = new RingAttack(count, radius, offset, projectileIndex); } return(ret); }