public float GetHighscore() { AndroidJavaObject activity = PluginClass.GetStatic <AndroidJavaObject>("mainActivity"); float highscore = PluginInstance.Call <float>("readHighscore", activity); return(highscore); }
void DeleteHighscore() { AndroidJavaObject activity = PluginClass.GetStatic <AndroidJavaObject>("mainActivity"); PluginInstance.Call("deleteHighscore", activity); }
public void SetHighscore(float score) { AndroidJavaObject activity = PluginClass.GetStatic <AndroidJavaObject>("mainActivity"); PluginInstance.Call("writeHighscore", new object[] { score, activity }); }