Beispiel #1
0
    public void Open_App(string app)
    {
#if UNITY_IPHONE
        IntPtr objectName    = Marshal.StringToHGlobalAuto(this.name);
        IntPtr messageName   = Marshal.StringToHGlobalAuto("SetButtonText");
        IntPtr parameterName = Marshal.StringToHGlobalAuto("New Text");

        OSHookBridge.SendUnityBridgeMessage(objectName, messageName, parameterName);
#elif UNITY_ANDROID
        OSHookBridge.ShowAppID(app);
#endif
    }
Beispiel #2
0
    public void OpenApp()
    {
#if UNITY_ANDROID
        if (Estado)
        {
            OSHookBridge.ShowAppID(PAQUETE);
            OSHookBridge.ShowMensage("Abriendo APP");
        }
        else
        {
            OSHookBridge.ShowAppStore(PAQUETE);
            OSHookBridge.ShowMensage("Abriendo en la PLAY STORE");
        }
#endif
        Controlador.AppVista(PlayerPrefs.GetString("Id"), PAQUETE);
    }