Пример #1
0
 public void AddItem(int value)
 {
     N.PlusAndSave(1);
     int[] NUM2 = new int[N.Get()];
     for (int i = 0; i < NUM.Length; i++)
     {
         NUM2[i] = NUM[i];
     }
     NUM2[N.Get() - 1] = value;
     NUM = NUM2;
     Save(N.Get() - 1);
 }
Пример #2
0
    void Start()
    {
        //PlayerPrefs.DeleteAll();

        SAVED_CONTENT = new SuperString("http://stgame.vn|Pikachu 2016|ads_pika2016.png", "tads534");
        LOAD_COUNT    = new SuperInt(0, "tadsloadcount");

        //GetADS();
        //ParseCONTENT(SAVED_CONTENT.STR, true);
        //return;
        if (LOAD_COUNT.Get() == 0)
        {
            Debug.Log("loading new ads");
            GetADS();
        }
        else
        {
            Debug.Log("no: load saved ads");

            LOAD_COUNT.PlusAndSave(1);
            if (LOAD_COUNT.Get() >= 5)
            {
                LOAD_COUNT.SetAndSave(0);
            }
            ParseCONTENT(SAVED_CONTENT.STR, true);
        }


        //AAdsLabel a = new AAdsLabel(null, null, null, null, null, null, null);
        //SerializedData
    }
Пример #3
0
    void OnLoadDone()
    {
        string STR = STR_LOAD;

        Debug.Log(STR);
        if (STR == null || STR.Length < 5)
        {
            ParseCONTENT(SAVED_CONTENT.STR, true); return;
        }
        STR = STR.Trim();
        STR = STR.Replace("\r\n", "");
        STR = STR.Replace("\r", "");
        STR = STR.Replace("\n", "");

        //Debug.Log(STR);

        string[] ttt = STR.Split('$');
        if (ttt.Length > 1)
        {
            STR = ttt[1];
        }
        else
        {
            STR = ttt[0];
        }
        //return;
        string[] STRA = STR.Split('|');

        int NUM = STRA.Length / 3;

        if (NUM >= 3)
        {
            SAVED_CONTENT.STR = STR;
            SAVED_CONTENT.Save();
            LOAD_COUNT.PlusAndSave(1);
            ParseCONTENT(STR, false);
        }
        else
        {
            STR = SAVED_CONTENT.STR;
            ParseCONTENT(STR, true);
        }
    }
Пример #4
0
    void Start()
    {
        if (I != null)
        {
            Destroy(gameObject);
            return;
        }
        DontDestroyOnLoad(gameObject);
        NUMBER_GAME_OPEN = new SuperInt(0, "dfksldjf");

        NUMBER_CLICK_YES = new SuperInt(0, "dfksldjchick");
        if (NUMBER_CLICK_YES.Get() > 2)
        {
            return;
        }

        NUMBER_GAME_OPEN.PlusAndSave(1);
        if (NUMBER_GAME_OPEN.Get() % 10 == 0)
        {
            TW.I.AddWarningYN("", "Bạn có muốn đánh giá 5 sao cho game này không ?", click_yes);
        }
    }
Пример #5
0
    void Start()
    {
        SAVED_CONTENT = new SuperString("http://stgame.vn|Pikachu 2016|ads_pika2016.png", "tads534");
        LOAD_COUNT    = new SuperInt(0, "tadsloadcount");

        if (LOAD_COUNT.Get() == 0)
        {
            Debug.Log("loading new ads");
            GetADS();
        }
        else
        {
            Debug.Log("no: load saved ads");

            LOAD_COUNT.PlusAndSave(1);
            if (LOAD_COUNT.Get() >= 5)
            {
                LOAD_COUNT.SetAndSave(0);
            }
            ParseCONTENT(SAVED_CONTENT.STR, true);
        }
    }
Пример #6
0
 public void click_yes()
 {
     NUMBER_CLICK_YES.PlusAndSave(1);
     TI.ClickRate();
 }