void OnGUI()
    {
        if (GUI.Button(new Rect(20, 20, 140, 25), "Create Table"))
        {
            GSFU_Demo_Utils.CreatePlayerTable(true);
        }

        if (GUI.Button(new Rect(20, 60, 140, 25), "Create Player"))
        {
            GSFU_Demo_Utils.SaveGandalf(true);
        }

        if (GUI.Button(new Rect(20, 100, 140, 25), "Update Player"))
        {
            GSFU_Demo_Utils.UpdateGandalf(true);
        }

        if (GUI.Button(new Rect(20, 140, 140, 25), "Retrieve Player"))
        {
            GSFU_Demo_Utils.RetrieveGandalf(true);
        }

        if (GUI.Button(new Rect(20, 180, 140, 25), "Retrieve All Players"))
        {
            GSFU_Demo_Utils.GetAllPlayers(true);
        }

        if (GUI.Button(new Rect(20, 220, 140, 25), "Retrieve All Tables"))
        {
            GSFU_Demo_Utils.GetAllTables(true);
        }
    }
Exemple #2
0
 public void SubmitInfo(string inputName, string password, string URL, string ID)
 {
     if (!string.IsNullOrEmpty(inputName))
     {
         PlayerPrefs.SetString("Name", inputName);
         PlayerPrefs.SetString("URL", URL);
         PlayerPrefs.SetString("ID", ID);
         PlayerPrefs.SetString("Password", password);
         GSFU_Demo_Utils.createPlayer(inputName);
     }
 }
    void OnGUI()
    {
        if (GUI.Button(new Rect(20, 20, 140, 25), "Create Table"))
        {
            GSFU_Demo_Utils.CreatePlayerTable(true);
        }



        if (GUI.Button(new Rect(20, 300, 140, 25), "Test"))
        {
            GSFU_Demo_Utils.namechange(playername);
        }
    }
 static void GetAllTables()
 {
     GSFU_Demo_Utils.GetAllTables(false);
 }
 static void GetAllPlayers()
 {
     GSFU_Demo_Utils.GetAllPlayers(false);
 }
 static void RetrieveGandalf()
 {
     GSFU_Demo_Utils.RetrieveGandalf(false);
 }
 static void UpdateGandalf()
 {
     GSFU_Demo_Utils.UpdateGandalf(false);
 }
 static void SaveGandalf()
 {
     GSFU_Demo_Utils.SaveGandalf(false);
 }
 static void CreatePlayerTable()
 {
     GSFU_Demo_Utils.CreatePlayerTable(false);
 }