コード例 #1
0
 void Parse(string pS)
 {
     try {
         StackOfInt stObj = new StackOfInt(pS);
         Mon   = stObj.PopHeadInt();
         Day   = stObj.PopHeadInt();
         stObj = null;
     } catch {
         Ag.LogIntenseWord(" No Info :::   Set    0 / 0   D/M  ");
     }
 }
コード例 #2
0
    public Scouter(JSONNode pJson)
    {
        if (AgUtil.IsNullJson(pJson))
        {
            SetVoidCount();
            return;
        }
        StackOfInt stObj = new StackOfInt(pJson);

        for (int k = 0; k < 6; k++)
        {
            arrCount.Add(new SctCounter(stObj.PopHeadInt(), stObj.PopHeadInt()));
        }
    }
コード例 #3
0
    //  _////////////////////////////////////////////////_    _____   Game Number of Today   _____   Write   _____
    void IncreseGameNumber()
    {
        string MonDayGNum = PreviewLabs.PlayerPrefs.HasKey("GameNumInts") ? PreviewLabs.PlayerPrefs.GetString("GameNumInts") : "0_0_0";

        StackOfInt iObj = new StackOfInt(MonDayGNum);
        int        mon = iObj.PopHeadInt(), day = iObj.PopHeadInt(), gNum = iObj.PopHeadInt();

        if (mon == DateTime.Now.Month && day == DateTime.Now.Day)
        {
            gNum++;
        }
        else
        {
            mon  = DateTime.Now.Month;
            day  = DateTime.Now.Day;
            gNum = 1;
        }

        MonDayGNum = mon.ToString() + "_" + day.ToString() + "_" + gNum.ToString();
        PreviewLabs.PlayerPrefs.SetString("GameNumInts", MonDayGNum);
    }