Ejemplo n.º 1
0
 public void Localization()
 {
     url = input.text;
     string[][] sheet = GoSheets.GetGoogleSheet(url);
     spanish.text = sheet [0] [0] + "\n" + sheet [1] [0] + "\n" + sheet [2] [0] + "\n" + sheet [3] [0] + "\n" + sheet [4] [0];
     english.text = sheet [0] [1] + "\n" + sheet [1] [1] + "\n" + sheet [2] [1] + "\n" + sheet [3] [1] + "\n" + sheet [4] [1];
 }
Ejemplo n.º 2
0
 public void LoadValues()
 {
     url = input.text;
     string[][] sheet = GoSheets.GetGoogleSheet(url);
     c1.transform.position = GoSheets.CellToVector3(sheet [1] [0]);
     c1.GetComponent <Renderer>().material.color = GoSheets.CellToColor(sheet [2] [0]);
     c2.transform.position = GoSheets.CellToVector3(sheet [1] [1]);
     c2.GetComponent <Renderer>().material.color = GoSheets.CellToColor(sheet [2] [1]);
     c3.transform.position = GoSheets.CellToVector3(sheet [1] [2]);
     c3.GetComponent <Renderer>().material.color = GoSheets.CellToColor(sheet [2] [2]);
 }
Ejemplo n.º 3
0
 public void CheckVer()
 {
     url = input.text;
     string[][] sheet = GoSheets.GetGoogleSheet(url);
     if (GoSheets.CellToInt(sheet [1] [0]) > localVersion)
     {
         result.text = "Please, update your game.";
     }
     else
     {
         result.text = "Your game is up to date.";
     }
 }
Ejemplo n.º 4
0
    // Use this for initialization
    public void Benchmark()
    {
        url = input.text;
        int t = Environment.TickCount;

        for (int i = 0; i < 100; i++)
        {
            string[][] sheet = GoSheets.GetGoogleSheet(url);
        }
        int t2 = Environment.TickCount - t;

        int t3 = Environment.TickCount;

        for (int i = 0; i < 100; i++)
        {
            string[][] sheet = GoSheets.GetGoogleSheetNative(url);
        }
        int t4 = Environment.TickCount - t3;

        result.text = "BENCHMARK RESULTS\nOriginal: " + (t2 / 1000f) + " s\nNative: " + (t4 / 1000f) + " s";
    }
Ejemplo n.º 5
0
 // Use this for initialization
 public void GetSheet()
 {
     url = input.text;
     string[][] sheet = GoSheets.GetGoogleSheet(url);
     result.text = "(A1): " + sheet [0] [0] + "\n(B1): " + sheet [0] [1] + "\n(A2): " + sheet [1] [0];
 }
 public string[][] FetchRemoteCSV(string url)
 {
     string[][] sheet = GoSheets.GetGoogleSheet(url);
     return(sheet);
 }