question

shashchamp avatar image
shashchamp asked

How to use amazon gamecircle plugin in Unity

I am using Unity 3.5.6 and then I installed amazon gamecircle plugin into unity. Since I am new to Unity all it does it just import the plugin and then I have no clue how to move forward and use gamecircle plugin so that I can integrate it into my game app. Can someone help me with this. https://developer.amazon.com/sdk/gamecircle/documentation/unity-gamecircle-overview.html All this shows is from where I can download the plugin.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Simon Edis avatar image
Simon Edis answered
This might help you get started: http://prime31.com/unity/docs/#amazonGameServicesDoc
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Samuel@Amazon avatar image
Samuel@Amazon answered
Hi, Thanks for the link given on Amazon Game circle for unity plugin. I am sure this will help shashchamp and other developers as well. shashchamp, In additional, you might want to refer to the below link for more information. https://developer.amazon.com/sdk/gamecircle/documentation/unity-gamecircle-overview.html Thank you.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

shashchamp avatar image
shashchamp answered
Hi Samuel I already went through the link you gave. My real problem is once I install the plugin in Unity and load the project/game in unity what should be the next step to integrate gamecircle. For example which tab of unity should I go so I can find my amazon gamecircle plugin and then at that point I can integrate my code to make it gamecircle compatible. Because as soon as it installs unity plugin I have no idea in which direction to proceed now. Something similar to this will help a lot.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

shashchamp avatar image
shashchamp answered
https://developer.amazon.com/sdk/gamecircle/documentation/unity-gamecircle-setup.html Thanks for the help can u just tell me in the first link where I can add the code described in 5th step. So in unity under Project tab I find gamecircleandroid folder which contains 4 options 1. GameCircle 2. GamecrcleLeaderBoard 3. GamecircleManager 4. GamecircleScore
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

Samuel@Amazon avatar image
Samuel@Amazon answered
Hi shashchamp, Please select GameCircleManager.cs file to add your code. Thank you.
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

drobasergey avatar image
drobasergey answered
Hello. Sorry for intervention, just started using Gamecircle plugin in Unity and stumbled to this forum. In this instruction I found a sample code: https://developer.amazon.com/sdk/gamecircle/documentation/unity-gamecircle-setup.html public class MainMenuGUI : MonoBehaviour { ... #if UNITY_ANDROID //Subscribe to the GameCircle events // This event indicates that GameCircle has been Initialized GameCircleManager.serviceReadyEvent += ServiceReadyHandler; // These are Whispersync events GameCircleManager.onSynchronizeFailureEvent += SyncFailHandler; GameCircleManager.onNewGameDataEvent += NewGameDataHandler; // GameCircle should only be initialized when the game is first launched // Use a bool to run GameCircle.init() only on first launch if (GameManager.firstLaunch) { //Initialize GameCircle Debug.Log ("Initializing GameCircle"); // The GameCircle.init() method takes 4 bool parameters // The first parameter indicates whether the game currently has local game state saved // The remaining 3 parameters indicate which GameCircle features are used // Features: Leaderboards, Achievements, Whispersync GameCircle.init (true, true, true, true); GameManager.firstLaunch = false; } #endif I'm trying implement it to my code, but it getting error: Assets/Scripts/_main_Menu/mainMenuClick.cs(20,52): error CS0103: The name `ServiceReadyHandler' does not exist in the current context 1. How I must initialize "ServiceReadyHandler"? 2. Or where this code must place? 3. But if I commented this error nothing happens. And when I try run "GameCircle.showLeaderboardsOverlay ();" nothing going too. Thank you!
10 |5000 characters needed characters left characters exceeded

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.