void Start() { //Debug.Log(ID); string s = "+"; ST_SHOP = st_shopTable.getst_shopByID(ID); if (ST_SHOP.is_ads == true) { TEXT.text = "Remove ads \n" + ST_SHOP.usd + "$"; } else { if (ST_SHOP.coin > 0) { s += ST_SHOP.coin + " COIN \n" + ST_SHOP.usd + "$"; } else { s += ST_SHOP.gem + " GEM \n" + ST_SHOP.usd + "$"; } TEXT.text = s; } }
public void load() { st_shop t; t = new st_shop(); t.id = 0; t.stringid = "com.csgame.defend.coin1"; t.coin = 100; t.gem = 0; t.is_ads = false; t.icon = "no"; t.usd = 1; VALUE.Add(0, t); t = new st_shop(); t.id = 1; t.stringid = "com.csgame.defend.gem1"; t.coin = 0; t.gem = 200; t.is_ads = false; t.icon = "no"; t.usd = 1; VALUE.Add(1, t); t = new st_shop(); t.id = 2; t.stringid = "com.csgame.defend.coin5"; t.coin = 600; t.gem = 0; t.is_ads = false; t.icon = "no"; t.usd = 5; VALUE.Add(2, t); t = new st_shop(); t.id = 3; t.stringid = "com.csgame.defend.gem5"; t.coin = 0; t.gem = 1200; t.is_ads = false; t.icon = "no"; t.usd = 5; VALUE.Add(3, t); t = new st_shop(); t.id = 4; t.stringid = "com.csgame.defend.coin10"; t.coin = 1300; t.gem = 0; t.is_ads = false; t.icon = "no"; t.usd = 10; VALUE.Add(4, t); t = new st_shop(); t.id = 5; t.stringid = "com.csgame.defend.gem10"; t.coin = 0; t.gem = 4000; t.is_ads = false; t.icon = "no"; t.usd = 10; VALUE.Add(5, t); t = new st_shop(); t.id = 6; t.stringid = "com.csgame.defend.removeads"; t.coin = 0; t.gem = 0; t.is_ads = true; t.icon = "no"; t.usd = 1; VALUE.Add(6, t); }