void OnGUI() { if (GUI.Button(new Rect(50, 50, 200, 50), "<-")) { Application.LoadLevel("MainScene"); } if (GUI.Button(new Rect(50, 150, 200, 50), "sendRanking")) { LobiRankingAPIBridge.SendRanking(name, "SendRankingCallback", "devmassive01", 100); } if (GUI.Button(new Rect(50, 250, 200, 50), "getRanking")) { LobiRankingAPIBridge.GetRanking(name, "GetRankingCallback", "devmassive01", LobiRankingAPIBridge.RankingRange.All, LobiRankingAPIBridge.RankingCursorOrigin.Top, 1, 10); } if (GUI.Button(new Rect(50, 350, 200, 50), "getRankingList")) { LobiRankingAPIBridge.GetRankingList(name, "GetRankingListCallback", LobiRankingAPIBridge.RankingRange.All); } if (GUI.Button(new Rect(50, 450, 200, 50), "PresentRanking")) { LobiRankingBridge.PresentRanking(); } }
public void ButtonPush() { //Debug.Log("Button Push !!"); if (LobiCoreBridge.IsSignedIn()) { Debug.Log("アカウント作成済み"); /* アカウントが作成済みかチェック */ int val = (int)(10000.0f * Random.value); LobiRankingAPIBridge.SendRanking("Button", "SendRankingCallback", "test01", val); } else { Debug.Log("アカウント作成がまだ"); LobiCoreAPIBridge.SignupWithBaseName("Button", "SendAccountCallBack", "PlayerName"); } }