Exemplo n.º 1
0
    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);
        }
    }
Exemplo n.º 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);
     }
 }
Exemplo n.º 3
0
    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);
        }
    }
Exemplo n.º 4
0
 static void GetAllTables()
 {
     GSFU_Demo_Utils.GetAllTables(false);
 }
Exemplo n.º 5
0
 static void GetAllPlayers()
 {
     GSFU_Demo_Utils.GetAllPlayers(false);
 }
Exemplo n.º 6
0
 static void RetrieveGandalf()
 {
     GSFU_Demo_Utils.RetrieveGandalf(false);
 }
Exemplo n.º 7
0
 static void UpdateGandalf()
 {
     GSFU_Demo_Utils.UpdateGandalf(false);
 }
Exemplo n.º 8
0
 static void SaveGandalf()
 {
     GSFU_Demo_Utils.SaveGandalf(false);
 }
Exemplo n.º 9
0
 static void CreatePlayerTable()
 {
     GSFU_Demo_Utils.CreatePlayerTable(false);
 }