Esempio n. 1
0
    public void SendProgress()
    {
        Debug.Log("FuelSDKGrooveIntegration - SendProgress called.");

        Dictionary <string, int> scoreDict = new Dictionary <string, int>();

        scoreDict.Add("value", variable_inc);

        Dictionary <string, object> progressDict = new Dictionary <string, object>();

        progressDict.Add("bronze", scoreDict);        //these keys should match the variable names

        List <object> tags = new List <object>();

        tags.Add("BronzeFilter");
        tags.Add("bronzeSong1");

        List <object> methodParams = new List <object>();

        methodParams.Add(progressDict);
        methodParams.Add(tags);
        bool success = FuelSDK.ExecMethod("SendProgress", methodParams);

        if (success == true)
        {
            //Your progress has been successfully updated
        }

        //FuelSDK.SendProgress( progressDict , tags );
    }
Esempio n. 2
0
    public void GetEventsViaExecMethod()
    {
        List <object> tags = new List <object> ();

        tags.Add("allowedMissions");
        tags.Add("allowedQuests");

        // invoke FuelSDK.GetEvents () via FuelSDK.ExecMethod ()
        FuelSDK.ExecMethod("GetEvents", tags);
    }