Пример #1
0
    void OnGUI()
    {
#if UNITY_ANDROID
        PluginsDemoAndroidGUI.OnGUI();
#endif
#if UNITY_IPHONE
        PluginsDemoIosGUI.OnGUI();
#endif
    }
Пример #2
0
    // Update is called once per frame
    void Update()
    {
#if UNITY_ANDROID
        PluginsDemoAndroidGUI.Update();
#endif
#if UNITY_IPHONE
        PluginsDemoIosGUI.Update();
#endif
    }
Пример #3
0
    // 开发者自定义的账号操作反回结果方法
    void AccountCallBack(string jsonStr)
    {
        Debug.Log("AccountCallBack----jsonStr-----" + jsonStr);
#if UNITY_ANDROID
        PluginsDemoAndroidGUI.CallBack(jsonStr);
#endif
#if UNITY_IPHONE
        PluginsDemoIosGUI.CallBack(jsonStr);
#endif
    }
Пример #4
0
    // Use this for initialization
    void Start()
    {
#if UNITY_ANDROID
        PluginsDemoAndroidGUI.Start(gameObject);
#endif

#if UNITY_IPHONE
        PluginsDemoIosGUI.Start(gameObject);
#endif
    }
 // Use this for initialization
 void Start()
 {
     PluginsDemoIosGUI.Start(gameObject);
 }
 // 开发者自定义的账号操作反回结果方法
 void AccountCallBack(string jsonStr)
 {
     Debug.Log("AccountCallBack----jsonStr-----" + jsonStr);
     PluginsDemoIosGUI.CallBack(jsonStr);
 }
 void OnGUI()
 {
     PluginsDemoIosGUI.OnGUI();
 }
 // Update is called once per frame
 void Update()
 {
     PluginsDemoIosGUI.Update();
 }