void Start() { api = gameObject.AddComponent <APICaller>(); Inventory = gameObject.AddComponent <Inventory>(); levelLoader = gameObject.AddComponent <LevelLoader>(); btnDisable = gameObject.AddComponent <BtnDisable>(); btnDisable.button1 = button5; btnDisable.button2 = button6; btnDisable.x = Btn5; btnDisable.y = Btn6; Btns[0] = Btn1; Btns[1] = Btn2; Btns[2] = Btn3; Btns[3] = Btn4; Btns[4] = Btn5; Btns[5] = Btn6; buttons[0] = button1; buttons[1] = button2; buttons[2] = button3; buttons[3] = button4; buttons[4] = button5; buttons[5] = button6; request(); }
private IEnumerator GetDailyBenefitsBtn(GameObject obj) { BtnDisable disable = obj.GetComponent <BtnDisable>(); if (disable != null && !disable.Disable) { BtnGameManager.yt.Rows[0]["AimGetLogin"].YuanColumnText = (int.Parse(BtnGameManager.yt.Rows[0]["AimGetLogin"].YuanColumnText) + 1).ToString(); while (BtnGameManager.yt.IsUpdate) { yield return(new WaitForSeconds(0.1f)); } InRoom.GetInRoomInstantiate().UpdateYuanTable("DarkSword2", BtnGameManager.yt, SystemInfo.deviceUniqueIdentifier); InRoom.GetInRoomInstantiate().GetDailyBenefits(); // disable.Disable = true; } }