Ejemplo n.º 1
0
        public static void removeBet()
        {
            JSONClass number = new JSONClass();

            number.Add("TAG", "REMOVE_COIN");
            Roulette_AppWarpClass.sendChat(number.ToString());
        }
Ejemplo n.º 2
0
        public static void unDoBet()
        {
            JSONClass number = new JSONClass();

            number.Add("TAG", "UNDO");
            Roulette_AppWarpClass.sendChat(number.ToString());
        }
Ejemplo n.º 3
0
 void sendBetttingToServer()
 {
     try
     {
         JSONClass data  = new JSONClass();
         JSONArray array = new JSONArray();
         foreach (Bet b in BetList)
         {
             foreach (int n in b.number)
             {
                 JSONClass number = new JSONClass();
                 number.Add("NUMBER", "" + n);
                 int time = (36 / b.number.Count) - 1;
                 number.Add("TIMES", "" + time);
                 number.Add("TAG", "ADD_COIN");
                 number.Add("COIN", "" + b.coin);
                 //data.Add ("NUMBER", number);
                 Roulette_AppWarpClass.add_coin(number);
                 //array.Add (number);
             }
         }
         data.Add("TAG", "ADD_COIN");
         data.Add("NUMBER", array);
     }
     catch (System.Exception ex)
     {
         Debug.Log("Ex Handle " + ex);
     }
     //Roulette_AppWarpClass.add_coin (data);
 }
Ejemplo n.º 4
0
 public static void add_coin(JSONClass data)
 {
     if (PlayerPrefs.GetInt(PlayerDetails.RealMoney) == 1)
     {
         Debug.Log(data.ToString());
         Roulette_AppWarpClass.sendChat(data.ToString());
     }
 }
Ejemplo n.º 5
0
 void sendBetttingToServer(Bet b)
 {
     try {
         JSONClass number = new JSONClass();
         int       time   = (36 / b.number.Count) - 1;
         number.Add("TIMES", "" + time);
         number.Add("TAG", "ADD_COIN");
         number.Add("COIN", "" + b.coin);
         number.Add("BET_ID", "" + b.betID);
         number.Add("x", "" + b.coinPosition.x);
         number.Add("y", "" + b.coinPosition.y);
         number.Add("z", "" + b.coinPosition.z);
         number.Add("IMAGE", "" + b.coinImageName);
         JSONArray num = new JSONArray();
         foreach (int n in b.number)
         {
             num.Add("" + n);
         }
         number.Add("NUMBER", num.ToString());
         Roulette_AppWarpClass.add_coin(number);
     } catch (System.Exception ex) {
         // Debug.Log (ex.Message);
     }
 }
Ejemplo n.º 6
0
 public static void add_coin(JSONClass data)
 {
     Roulette_AppWarpClass.sendChat(data.ToString());
 }
Ejemplo n.º 7
0
 public void unDoBet()
 {
     Roulette_AppWarpClass.unDoBet();
 }
Ejemplo n.º 8
0
 public void clearTable()
 {
     Roulette_AppWarpClass.removeBet();
 }