Beispiel #1
0
        /// <summary>
        /// NCMBSettingsがHierarchyになければ、作成してキー設定を行う
        /// キーは、ScriptableObjectに設定した値を代入する
        /// </summary>
        protected virtual void Awake()
        {
            if (FindObjectOfType(typeof(NCMBSettings)) == null)
            {
                NCMBUTKeySettings data = (NCMBUTKeySettings)Resources.Load("NCMBUTKeySettings");

                GameObject obj = new GameObject("Settings");
                obj.AddComponent <NCMBSettings>();

                NCMBSettings.ApplicationKey = data.ApplicationKey;
                NCMBSettings.ClientKey      = data.ClientKey;
            }
        }
Beispiel #2
0
 public static void SetAPIKeys()
 {
     NCMBUTKeySettings.Edit();
 }