mattak's blog

人生を1ミリ進める

ゲームブートキャンプ12日目

のうりんをみると元気が出る!

今日やること

24:30-

というかあるじゃまいか! https://github.com/playgameservices/play-games-plugin-for-unity

公式が出してるらしい。 今日はこれをつかってみる

# サンプルうごかす

まずはclone

$ git clone https://github.com/playgameservices/play-games-plugin-for-unity

samples/MinimalをUnityでひらく

開いた状態で、current-build/GooglePlayGamesPlugin-0.8.01.unitypackageをダブルクリック。 現在のプロジェクトへimportする.

File->PlayGameAndroidSetupがメニューに出現するので開く.

ここに入力するApplicationIDを取得するために、google play api consoleへ

API&AUTH -> Google Play Game Services をON

DeveloperConsoleへ

ゲームサービス->新しいゲームを追加

リンクするAPIコンソールプロジェクト:UnitySample
ジャンル:カジュアル

次へ

リンク済みアプリ -> Android

とりあえず、ApplicationIDが判明した。アプリのタイトル名の横にある数字がそう。

該当する説明は以下のページ