Example #1
0
    //not currently being used
    private void sendCustomMatchResult(long score, float visualScore)
    {
        Debug.Log("sendCustomMatchResult");

        // construct custom leader board score currency dictionary for auxScore1
        Dictionary <string, object> auxScore1Currency = new Dictionary <string, object> ();

        auxScore1Currency.Add("id", "visualScore");
        auxScore1Currency.Add("score", visualScore);
        auxScore1Currency.Add("visualScore", visualScore.ToString());

        // construct array of custom leader board score currencies
        List <object> currencies = new List <object> ();

        currencies.Add(auxScore1Currency);

        // construct match data dictionary
        Dictionary <string, object> matchData = new Dictionary <string, object> ();

        matchData.Add("currencies", currencies);

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

        matchResult.Add("tournamentID", m_matchData.TournamentID);
        matchResult.Add("matchID", m_matchData.MatchID);
        matchResult.Add("score", m_matchData.MatchScore);
        matchResult.Add("matchData", matchData);

#if PROPELLER_SDK
        PropellerSDK.SubmitMatchResult(matchResult);
        NotificationCenter.DefaultCenter.PostNotification(getMainMenuClass(), "AddTransOverlay");
        PropellerSDK.Launch(m_listener);
#endif
    }
Example #2
0
    /*
     * -----------------------------------------------------
     *                                      Launch Routines
     * -----------------------------------------------------
     */
    private void LaunchDashBoard()
    {
        Debug.Log("LaunchDashBoard");

#if PROPELLER_SDK
        NotificationCenter.DefaultCenter.PostNotification(getMainMenuClass(), "AddTransOverlay");
        PropellerSDK.Launch(m_listener);
#endif
    }
Example #3
0
    public void launchPropeller()
    {
        if (useFuelCompete == false)
        {
            return;
        }

        Debug.Log("launchPropeller");

#if PROPELLER_SDK
        if (m_listener == null)
        {
            throw new Exception();
        }

        NotificationCenter.DefaultCenter.PostNotification(getMainMenuClass(), "AddTransOverlay");
        PropellerSDK.Launch(m_listener);
#endif
    }