Instantly share code, notes, and snippets.

Embed
What would you like to do?
Kii Cloud検証中なう。
using UnityEngine;
using System.Collections;
using KiiCorp.Cloud.Storage;
using KiiCorp.Cloud.Analytics;
public class KiiCloudManager : MonoBehaviour {
void Awake()
{
string deviceID = SystemInfo.deviceUniqueIdentifier;
Kii.Initialize( Kii.AppId, Kii.AppKey, Kii.Site.JP );
KiiAnalytics.Initialize( Kii.AppId, Kii.AppKey, KiiAnalytics.Site.JP, deviceID );
registTest();
}
private void registTest(){
KiiUser.Builder builder;
builder = KiiUser.BuilderWithName("hogehoge");
builder.WithEmail("hogehoge@example.com");
KiiUser User = builder.Build();
User.Register("hogehoge");
}
}
@masayuki5160

This comment has been minimized.

Owner

masayuki5160 commented Feb 25, 2014

  1. Assetのインポート https://www.assetstore.unity3d.com/#/content/15017
  2. Kii Cloudで発行されたAppIDとAppKeyをUnity側で設定
  3. 上記スクリプトを作成して再生するとアカウント登録処理まではいく。

まだいろいろやらなあかんけどひとまずつなぎの部分の設定はこんだけなのか?

@masayuki5160

This comment has been minimized.

Owner

masayuki5160 commented Feb 25, 2014

@masayuki5160

This comment has been minimized.

Owner

masayuki5160 commented Feb 25, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment