コード例 #1
0
ファイル: Randoms.cs プロジェクト: daxingyou/AraleEngine
    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));
    }
コード例 #2
0
ファイル: Randoms.cs プロジェクト: daxingyou/AraleEngine
    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);
    }
コード例 #3
0
ファイル: DropRandom.cs プロジェクト: Nicrob64/MoonJam
 private void Awake()
 {
     SharedInstance = this;
 }