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 }
public SuperArrayInt_List(int n, int initv, string key) { N = new SuperInt(n, key + key); KEY = key; NUM = new int[N.Get()]; NUM_DEFAULT = initv; Load(); }
public UserInfo(string key) { KEY = key; USER = new SuperString("", KEY + ":I"); PASS = new SuperString("", KEY + ":L"); ID = new SuperInt(0, KEY + ":F"); Save(); }
public UserInfo(string key, string user, string pass, int id) { KEY = key; USER = new SuperString(user, KEY + ":I"); PASS = new SuperString(pass, KEY + ":L"); ID = new SuperInt(id, KEY + ":F"); Save(); }
public static void init() { for(int i=0;i<score.Length;i++) { score[i] = new SuperInt(0, i.ToString()); score[i].Load(); } //init }
public void Load() { N = new SuperInt(0, KEY + "nn"); DEVICES = new List <DeviceInfo>(); for (int i = 0; i < N.Get(); i++) { DeviceInfo d = new DeviceInfo(KEY + i + "h"); DEVICES.Add(d); } }
public static SuperArrayInt levelArray;// cai nay se lam viec sau khi set public static void Init() { levelEasy = new SuperInt(0,"LEVEL_EASY"); levelNormal = new SuperInt(0, "LEVEL_NORMAL"); levelHard = new SuperInt(0, "LEVEL_HARD"); levelEasyArray = new SuperArrayInt(20,0,"LEVEL_EASY"); levelNormalArray = new SuperArrayInt(20,0, "LEVEL_NORMAL"); levelHardArray = new SuperArrayInt(20,0, "LEVEL_HARD"); }
public void Load() { N = new SuperInt(0, KEY + "nn"); USERS = new List <UserInfo>(); for (int i = 0; i < N.Get(); i++) { UserInfo d = new UserInfo(KEY + i + "h"); USERS.Add(d); } }
public static void init() { Debug.Log("Init"); score = new SuperInt[6]; for(int i=0;i<score.Length;i++) { score[i] = new SuperInt(0, i.ToString()); score[i].Load(); } //init }
public void initSelectLevelWithType(SuperArrayInt _levelArray, SuperInt _level)//t =0 easy { ScoreCOntrol.setCurrentLevel(_levelArray, _level); for(int i=0;i<=ScoreCOntrol.level.NUM;i++) { gameObjectArrayButton[i].image.sprite = MainMenu.instance.sprButtonEnable; gameObjectArrayButton[i].star.sprite = sprStart[ScoreCOntrol.levelArray.Get(i) ]; gameObjectArrayButton[i].gameObject.GetComponent<Button>().interactable = true; } for(int i=ScoreCOntrol.level.NUM+1;i<ScoreCOntrol.levelArray.N;i++) { gameObjectArrayButton[i].image.sprite = MainMenu.instance.sprButtonDisable; gameObjectArrayButton[i].star.sprite = sprStartDisable; gameObjectArrayButton[i].gameObject.GetComponent<Button>().interactable = false; } }
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); } }
static UserInformation() { CURRENT_USER_ID = new SuperInt(-1, "currentuser"); USERSAVEINFO = new UserSaveInfo("user"); USERSAVEINFO.Xuat(); DEVICESAVEINFO = new DeviceSaveInfo("gfv"); #if UNITY_EDITOR if (DEVICESAVEINFO.N.Get() <= 1) { DEVICESAVEINFO.AddDeviceInfo("1111111", "222222", "181d"); } string s = ""; //foreach (characteristicUUIDInfo i in LISTS_OBTAINED) { s += "aaaa" + "," + "bbbbb" + "," + "sdfsd f " + "\n"; s += "aaaa2" + "," + "bbbbb2" + "," + "sdfsd f " + "\n"; } DEVICESAVEINFO.DEVICES[0].INFO.STR = s; DEVICESAVEINFO.DEVICES[0].Save(); #endif }
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); } }
public static void Load() { m_LevelUNblock = new SuperInt(1, "UNLOCK_STAGE"); m_LevelUNblock.Load(); }
public static void setCurrentLevel(SuperArrayInt _levelArray, SuperInt _level) { level = _level; levelArray = _levelArray; }