コード例 #1
0
        void OnEnable()
        {
            AccountAPIManager.onAccountDetailReceived += OnAccountDetailReceived;
            AccountAPIManager.onAccountDetailUpdated  += OnAccountDetailUpdated;

            AccountAPIManager.GetInstance().GetAccountDetail(!isDetailReceived);
        }
コード例 #2
0
        public static AccountAPIManager GetInstance()
        {
            if (instance == null)
            {
                instance = new GameObject("AccountAPIManager").AddComponent <AccountAPIManager> ();
            }

            return(instance);
        }
コード例 #3
0
        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);
        }
コード例 #4
0
ファイル: SelfLimit.cs プロジェクト: stevenpark88/PokerGame
        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);
        }
コード例 #5
0
        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);
        }