void OnEnable() { AccountAPIManager.onAccountDetailReceived += OnAccountDetailReceived; AccountAPIManager.onAccountDetailUpdated += OnAccountDetailUpdated; AccountAPIManager.GetInstance().GetAccountDetail(!isDetailReceived); }
public static AccountAPIManager GetInstance() { if (instance == null) { instance = new GameObject("AccountAPIManager").AddComponent <AccountAPIManager> (); } return(instance); }
public void OnSubmitButtonTap() { int username_val = toggleUsernameShow.isOn ? 1 : 0; int contact_val = toggleContactDetailsShow.isOn ? 1 : 0; int sound_val = toggleSoundOn.isOn ? 1 : 0; string timezone_val = timeZoneKeysList [dropdownTimezone.value]; DataManager.IsSoundEnabled = toggleSoundOn.isOn; AccountAPIManager.GetInstance().SetAccountDetail(username_val, contact_val, sound_val, timezone_val); }
public void OnSubmitButtonTap() { for (int i = 0; i < toggleButtonsList.Count; i++) { if (toggleButtonsList [i].isOn) { selectedSelfLimit = selfLimitAmountList [i]; } } Debug.Log("Selected Self Limit Amount : " + selectedSelfLimit); AccountAPIManager.GetInstance().SetSelfLimit(selectedSelfLimit); }
public void OnTempExclusionSubmitButtonTap() { int selectedSelfExclusionDays = 0; for (int i = 0; i < toggleButtonsList.Count; i++) { if (toggleButtonsList [i].isOn) { selectedSelfExclusionDays = selfExclusionDayList [i]; } } Debug.Log("Selected Self Exlusion Days : " + selectedSelfExclusionDays); AccountAPIManager.GetInstance().SetSelfExclusion("" + selectedSelfExclusionDays); }