Esempio n. 1
0
    public float GetHighscore()
    {
        AndroidJavaObject activity  = PluginClass.GetStatic <AndroidJavaObject>("mainActivity");
        float             highscore = PluginInstance.Call <float>("readHighscore", activity);

        return(highscore);
    }
Esempio n. 2
0
    void DeleteHighscore()
    {
        AndroidJavaObject activity = PluginClass.GetStatic <AndroidJavaObject>("mainActivity");

        PluginInstance.Call("deleteHighscore", activity);
    }
Esempio n. 3
0
    public void SetHighscore(float score)
    {
        AndroidJavaObject activity = PluginClass.GetStatic <AndroidJavaObject>("mainActivity");

        PluginInstance.Call("writeHighscore", new object[] { score, activity });
    }