SendPurchase() public static method

public static SendPurchase ( double amount ) : void
amount double
return void
Exemplo n.º 1
0
    // Test buttons to SendTags and SendPurchase to test segments on gamethrive.com
    void OnGUI()
    {
        GUIStyle customTextSize = new GUIStyle("button");

        customTextSize.fontSize = 30;

        GUIStyle customBoxSize = new GUIStyle("box");

        customBoxSize.fontSize = 30;

        GUI.Box(new Rect(10, 10, 390, 250), "Test Menu", customBoxSize);

        if (GUI.Button(new Rect(60, 80, 300, 60), "SendTags", customTextSize))
        {
            GameThrive.SendTag("UnityTestKey", "TestValue");
        }

        if (GUI.Button(new Rect(60, 170, 300, 60), "SendPurchase", customTextSize))
        {
            GameThrive.SendPurchase(2.57d);
        }

        if (extraMessage != null)
        {
            GUI.Box(new Rect(60, 300, 400, 60), extraMessage, customBoxSize);
        }
    }