예제 #1
0
        private void Start()
        {
            // すでに同意画面を表示している場合はチェック不要
            if (TTConsentPlayerPref.AlreadyShowConsent())
            {
                NextScene();
                return;
            }

            Request();
        }
예제 #2
0
        static void DoOptInOrOut()
        {
            Debug.Log("### TTConsent RuntimeInitializeOnLoadMethod()");
            // まだ同意を得てない場合は何もしない
            if (!TTConsentPlayerPref.AlreadyShowConsent())
            {
                Debug.Log("### TTConsent 同意前なので処理なし");
                if (TTOptOut.NeedOptOut())
                {
                    Debug.Log("ただし、設定画面からオプトアウトしてる可能性もあるので、オプトアウト状態だったらオプトアウトだけさせる");
                    TTOptOut.DoOptOut();
                }

                return;
            }

            Debug.Log("### TTConsent 起動時 DoOptInOrOut");
            TTOptOut.DoOptInOrOut();
        }
예제 #3
0
 public static bool AlreadyShowConsent()
 {
     return(TTConsentPlayerPref.AlreadyShowConsent());
 }