#pragma strict var isServiceReady = false; var message = ""; function Start () { } function serviceNotReadyHandler (error:String) { message = "Service is not ready" + "\n" + error; } function serviceReadyHandler () { message = "Service IS READY!!!!!"; } function Update () { isServiceReady = AGSClient.IsServiceReady(); AGSClient.ServiceReadyEvent += serviceReadyHandler; AGSClient.ServiceNotReadyEvent += serviceNotReadyHandler; AGSClient.Init (true, true, false); } function OnGUI(){ GUI.Label(Rect(20,20,Screen.width-20,Screen.height/2),message); }
I get the sign in pop-up very quickly aafter the Service is Ready message appears but I barely get a chance to click it, a long while later, the screen whites out and...oOhhh, I think it's working. But it's taking over a minute to get to the gamecircle screen. Where am I going wrong? Should I be using co-routines? I've never tried them before so a bit of sample code would really help me out here.
-
- Alexa
- Alexa Prize
- Alexa Connect Kit (ACK)
- Alexa Dev Days
- Alexa Developer Programs
- Alexa Developer Rewards
- Alexa Flash Briefing Skill API
- Alexa Gadgets
- Alexa Skill Management API (SMAPI)
- Alexa Skills Kit (ASK)
- Alexa Smart Home Skill API
- Alexa Video Skill API
- Alexa Voice Service (AVS)
- Amazon Pay
- In-Skill Purchases
- Works with Alexa
- Amazon Music
- Apps for Windows
- Appstore
- Frustration-Free Setup
- Leaderboards & Tournaments
- Amazon Fire Devices
- Merch by Amazon
- Amazon Underground
- Mobile APIs and Services
- General Android
- Amazon Dash Replenishment
- 日本語版ナレッジベース
- 亚马逊应用开发者中文论坛
- Forum Help
- Alexa
- Sign in