Data hosted with ♥ by Pastebin.com - Download Raw - See Original
  1. using UnityEngine;
  2. using System.Collections;
  3. using GamesSDKNamespace;
  4.  
  5. public class PluginHandler : MonoBehaviour {
  6.    
  7.     string Output = "No Message Yet";
  8.  
  9.     // Use this for initialization
  10.     void Start () {
  11.        
  12.     Invoke("DelayedStart",2.0f);
  13.        
  14.     }
  15.    
  16.     void DelayedStart()
  17.     {
  18.         MyTest.initialize("Test", "asd");
  19.         GamesSDK.login();
  20.     }
  21.    
  22.    
  23.     void onLogin(string str){
  24.         Debug.Log ("onLogin: " + str);
  25.         Output = "FromJava: "+str;
  26.     }
  27.    
  28.     public void OnGUI()
  29.     {
  30.         GUILayout.BeginVertical();
  31.         GUILayout.Label(Output);
  32.         GUILayout.EndVertical();
  33.     }
  34. }