示例#1
0
        //通信
        internal void Connect(NCMBConnection connection, NCMBExecuteScriptCallback callback)
        {
            GameObject   gameObj  = GameObject.Find("NCMBSettings");
            NCMBSettings settings = gameObj.GetComponent <NCMBSettings> ();

            settings.Connection(connection, callback);
        }
示例#2
0
 /// <summary>
 /// 初期設定を行います。
 /// </summary>
 public virtual void Awake()
 {
     if (!NCMBSettings._isInitialized)
     {
         NCMBSettings._isInitialized = true;
         _responseValidationFlag     = responseValidation;
         DontDestroyOnLoad(base.gameObject);
         NCMBSettings.Initialize(this.applicationKey, this.clientKey, this.domainURL, this.apiVersion);
         //NCMBSettings.RegisterPush(this.usePush, this.androidSenderId, this.getLocation);
         filePath = Application.persistentDataPath;
         currentInstallationPath = filePath + "/currentInstallation";
         NCMBSettings.RegisterPush(this.usePush, this.useAnalytics, false);
     }
 }
 /// <summary>
 /// 初期設定を行います。
 /// </summary>
 public virtual void Awake()
 {
     if (!NCMBSettings._isInitialized)
     {
         NCMBSettings._isInitialized = true;
         _responseValidationFlag     = responseValidation;
         DontDestroyOnLoad(base.gameObject);
         NCMBSettings.Initialize(this.applicationKey, this.clientKey);
         //NCMBSettings.RegisterPush(this.usePush, this.androidSenderId, this.getLocation);
         NCMBSettings.RegisterPush(this.usePush, this.androidSenderId, false);
         filePath = Application.persistentDataPath;
         base.StartCoroutine(Platform.RunLoop());
     }
 }