public static bool drop(int id, float reqRate) { DropRandom dr; if (!mThis.mDropRandoms.TryGetValue(id, out dr)) { mThis.mDropRandoms[id] = dr = new DropRandom(id); } return(dr.drop(id, reqRate)); }
public static void enableDrop(int id, bool able) { DropRandom dr; if (!mThis.mDropRandoms.TryGetValue(id, out dr)) { mThis.mDropRandoms[id] = dr = new DropRandom(id); } dr.enable(able); }
private void Awake() { SharedInstance = this; }