跳到主要內容

發表文章

目前顯示的是 4月, 2017的文章

Google play Game Service Unity 教學

  Google Play Gmae Servie Unity 教學 概念         我們需要由 unity 產生兩個資訊 1.       package name (com.asssdfream.test2) 2.       keystore 的 SHA1 然後由 ansdrod developer console 產生 兩個資訊回填到 Unity 中 1.       資源檔 2.       Client ID( 客戶 ID)   接著建立測試帳戶 即可開始測試 詳細作法標題 1.       建立 Unity 專案 2.       下載 https://github.com/playgameservices/play-games-plugin-for-unity SDK ,並加入套件 3.       將專案設定成 Android 平台 4.       為這個專案的 APK 簽暑 Keystore ,並改變 Package Name(com.aaasdream.test) 5.       登入 Android Developer Console 6.       遊戲服務 \ 建立新遊戲 7.       已連結的應用程式中 加入 Android 應用,並填入 Package Name 與 Keystore 的 SHA1 得到 Clinet ID 8.       事件的地方添加一個事件,並取得資源 9.       回到 Unity \ windows \ google play games \ setup Android 10.   改變 content class name 並將取得資源填入 Client ID 填入 完成設置 11.   新增測試人員,測試手機上的 GOOGLE 帳號  Start () 加入 GooglePlayGames. PlayGamesPlatform .Activate();   Social .localUser.authenticated 回傳是否登入   登入的程式碼 Social .localUser.Authenticate(( bool success) =