Ejemplo n.º 1
0
    public void TestUpdate()
    {
        BotData botData = myBotData;

        Debug.Log(botData.botName);
        stillWaiting = true;
        if (!botData)
        {
            Debug.LogError("[SendBotToCLoud] Suddenly botdata went missing");
            return;
        }
        var nb = new NewBot();

        nb.InitFromData(botData);
        UpdateBotRequest req = new UpdateBotRequest(1, nb);

        if (req != null)
        {
            Debug.Log("[SendActiveBot] req is not null <b>:></b>");
            GameSync.instance.SendData(req, "Update Bot In Cloud");
        }
        else
        {
            Debug.LogWarning("req is null <b>:></b>");
        }
    }
Ejemplo n.º 2
0
        public CreateBotRequest(NewBot _fields = null)
        {
            Debug.Log("[CreateBotRequest] " + _fields.name);
            Debug.Log("[CreateBotRequest] wheelsint: " + _fields.wheels);
            Debug.Log("[CreateBotRequest] cahssisint: " + _fields.chassis);
            Debug.Log("[CreateBotRequest] weaponint: " + _fields.weapon);
            Debug.Log("[CreateBotRequest] motorint: " + _fields.motor);
            Debug.Log("[CreateBotRequest] mantleint: " + _fields.mantle);
            Debug.Log("[CreateBotRequest] killcountint: " + _fields.killCount);

            type = "put-data";

            db = "beyblade";

            table = GameSync.instance.tableName;

            fields = _fields;
        }