예제 #1
0
        private void OnWizardCreate()
        {
            NCMBSettingsExtended ncmbSettingsEx = FindObjectOfType <NCMBSettingsExtended>();

            if (ncmbSettingsEx == null)
            {
                GameObject ncmbSettingObject = new GameObject("NCMBSettingsExtended");
                ncmbSettingsEx = ncmbSettingObject.AddComponent <NCMBSettingsExtended>();
            }

            ncmbSettingsEx.Initialize(applicationKey, clientKey, usePush, useAnalytics, androidSenderId, responseValidation);

            if (useAPIKeyFile)
            {
                if (string.IsNullOrEmpty(apiKeyFilePath))
                {
                    Debug.Log("ファイルパスが空です");
                    return;
                }

                NCMBGenerateAPIKeyFile.GenerateAPIKeyFile(applicationKey, clientKey, apiKeyFilePath);
                ncmbSettingsEx.EnableToUseAPIKeyFile(apiKeyFilePath);
            }
            else
            {
                ncmbSettingsEx.DisableToUseAPIKeyFile();
            }

            //NCMB Managerもなかったら作る//
            if (FindObjectOfType <NCMBManager>() == null)
            {
                new GameObject("NCMBManager").AddComponent <NCMBManager>();
            }
        }
예제 #2
0
        private void OnWizardCreate()
        {
            NCMBSettingsExtended.CreateAndInitiarize(applicationKey, clientKey, usePush, useAnalytics, androidSenderId, responseValidation, useExternalCryptedKeyFile);

            //NCMB Managerもなかったら作る//
            if (GameObject.FindObjectOfType <NCMBManager>() == null)
            {
                new GameObject("NCMBManager").AddComponent <NCMBManager>();
            }
        }
예제 #3
0
        private void OnWizardOtherButton()
        {
            NCMBSettingsExtended ncmbSettingsEx = FindObjectOfType <NCMBSettingsExtended>();

            if (ncmbSettingsEx != null)
            {
                applicationKey = ncmbSettingsEx.GetApplicationKey();
                clientKey      = ncmbSettingsEx.GetClientKey();
            }
            else
            {
                Debug.Log("NCMBSettingsExtended が存在しません。");
            }
        }
예제 #4
0
        private void OnWizardCreate()
        {
            GenerateAPIKeyFile(applicationKey, clientKey, apiKeyFilePath);

            NCMBSettingsExtended ncmbSettingsEx = FindObjectOfType <NCMBSettingsExtended>();

            if (ncmbSettingsEx == null)
            {
                Debug.Log("NCMBSettingsExtendedが存在しません。初期設定ウィザードから作成して下さい。");
            }
            else
            {
                ncmbSettingsEx.EnableToUseAPIKeyFile(apiKeyFilePath);
            }
        }