public static ReturnSpawn Instance(float speed) { ReturnSpawn ret; if (!instances.TryGetValue(speed, out ret)) ret = instances[speed] = new ReturnSpawn(speed); return ret; }
public static ReturnSpawn Instance(float speed) { ReturnSpawn ret; if (!instances.TryGetValue(speed, out ret)) { ret = instances[speed] = new ReturnSpawn(speed); } return(ret); }