Exemplo n.º 1
0
    // This will be used for broadcasts. One sheet will only have one column, broadcasts. This will pull it.
    public static void GetAllPlayers(bool runtime)
    {
        Debug.Log("<color=yellow>Retrieving all players from the Cloud.</color>");

        // Get all objects from table 'PlayerInfo'.
        CloudConnectorCore.GetTable(tableName, runtime);
    }
Exemplo n.º 2
0
    public IEnumerator LoadWineQuantities()
    {
        CloudConnectorCore.GetTable(TABLE_NAME);

        wineQuantitiesFromWebhost = new List <int>();
        wineQuantitiesFromHeroku  = new List <int>();
        for (int i = 0; i < 17; i++)
        {
            WWW www = new WWW(WEBHOST_URL + "getWineQuantity.php?id=" + i.ToString());
            while (!www.isDone)
            {
                yield return(0);
            }
            wineQuantitiesFromWebhost.Add(int.Parse(www.text));

            // Inserir chamada pro getWineQuantity do node por aqui @Heitor
            WWW wwnode = new WWW(HEROKU_URL + "getWineQuantity?id=" + i.ToString());
            while (!wwnode.isDone)
            {
                yield return(0);
            }
            wineQuantitiesFromHeroku.Add(int.Parse(Regex.Match(wwnode.text, @"\d+").Value));
        }
    }
Exemplo n.º 3
0
 public static void Version_Load()
 {
     CloudConnectorCore.GetTable("Version", true);
 }
Exemplo n.º 4
0
 public static void DoImport()
 {
     CloudConnectorCore.processedResponseCallback.AddListener(Data_Received);
     CloudConnectorCore.GetTable("Scripts", false);
 }
Exemplo n.º 5
0
    public static void GetVersion()
    {
        Debug.Log("<color=yellow>Retrieving Data Version from the Cloud.</color>");

        CloudConnectorCore.GetTable("Version", true);
    }
Exemplo n.º 6
0
 public static void getAbilityData()
 {
     CloudConnectorCore.GetTable(ABILITIES, true);
     finished3 = true;
 }
Exemplo n.º 7
0
 public static void getEnemyData()
 {
     CloudConnectorCore.GetTable(ENEMIES, true);
     finished1 = true;
 }
Exemplo n.º 8
0
 public static void getTowerData()
 {
     CloudConnectorCore.GetTable(TOWERS, true);
     finished2 = true;
 }