Exemplo n.º 1
0
    public void ContentDidDisappear(TapjoyEvent tapjoyEvent)
    {
        Debug.Log("C#: ContentDidDisappear for event: " + tapjoyEvent.GetName());

        // Pre-load next event if direct play event
        if (tapjoyEvent.GetName() == diectPlayEvent.GetName())
        {
            diectPlayEvent = new TapjoyEvent("video_unit", this);
            diectPlayEvent.EnablePreload(true);
            diectPlayEvent.Send();
            tapPointsLabel = "Loading next direct play event.";
        }
    }
Exemplo n.º 2
0
    // CONNECT
    public void HandleTapjoyConnectSuccess()
    {
        Debug.Log("C#: HandleTapjoyConnectSuccess");


        // Get the user virtual currency
        TapjoyPlugin.GetTapPoints();

        // Preload direct play event
        diectPlayEvent = new TapjoyEvent("video_unit", this);
        diectPlayEvent.EnablePreload(true);
        diectPlayEvent.Send();
    }