public void Start() { points_header_text.text = TextManager.getText("prize_points_header_text"); points_points_text.text = TextManager.getText("prize_points_points_text"); points_prize_text.text = TextManager.getText("prize_points_prize_text"); points_btn_text.text = TextManager.getText("prize_points_btn_text"); week_header_text.text = TextManager.getText("prize_week_header_text"); week_points_text.text = TextManager.getText("prize_week_points_text"); week_place_text.text = TextManager.getText("prize_week_place_text"); week_percent_place_text.text = TextManager.getText("prize_week_percent_place_text"); week_prize_text.text = TextManager.getText("prize_week_prize_text"); week_btn_text.text = TextManager.getText("prize_week_btn_text"); ServeredData data = new ServeredData(); data.GetPrize((ServeredData.PrizeAnswer answ) => { answer = answ; set_value = true; }, () => { }); checkBeautyPrizes(); }
public CatsPurse() { entity = new StorableData <CatsPurseEntity>("CatsPurseEntity"); name_entity = new StorableData <NameEntity>("name_entity"); serv_beauty = new ServeredData(); inf_h_timer = new ServeredTimer(); infinity_hearts = false; }
// Use this for initialization void Start() { daily_prizes = new List <DailyPrize> [35]; daily_prizes[0] = new List <DailyPrize>(); daily_prizes[0].Add(new CoinsPrize(500)); daily_prizes[0].Add(new InfHeartsPrize(3)); daily_prizes[1] = new List <DailyPrize>(); daily_prizes[1].Add(new CoinsPrize(750)); daily_prizes[1].Add(new InfHeartsPrize(5)); daily_prizes[2] = new List <DailyPrize>(); daily_prizes[2].Add(new CoinsPrize(1000)); daily_prizes[2].Add(new InfHeartsPrize(8)); daily_prizes[2].Add(new TextirePrize("kitchen_003")); daily_prizes[3] = new List <DailyPrize>(); daily_prizes[3].Add(new CoinsPrize(1500)); daily_prizes[3].Add(new InfHeartsPrize(10)); daily_prizes[4] = new List <DailyPrize>(); daily_prizes[4].Add(new CoinsPrize(2000)); daily_prizes[4].Add(new InfHeartsPrize(15)); daily_prizes[4].Add(new TextirePrize("clothes_icons_but_001")); daily_prizes[5] = new List <DailyPrize>(); daily_prizes[5].Add(new CoinsPrize(500)); daily_prizes[5].Add(new InfHeartsPrize(3)); daily_prizes[6] = new List <DailyPrize>(); daily_prizes[6].Add(new CoinsPrize(750)); daily_prizes[6].Add(new InfHeartsPrize(5)); daily_prizes[7] = new List <DailyPrize>(); daily_prizes[7].Add(new CoinsPrize(1000)); daily_prizes[7].Add(new InfHeartsPrize(8)); daily_prizes[7].Add(new TextirePrize("bad_002_02")); daily_prizes[8] = new List <DailyPrize>(); daily_prizes[8].Add(new CoinsPrize(1500)); daily_prizes[8].Add(new InfHeartsPrize(10)); daily_prizes[9] = new List <DailyPrize>(); daily_prizes[9].Add(new CoinsPrize(2000)); daily_prizes[9].Add(new InfHeartsPrize(15)); daily_prizes[9].Add(new TextirePrize("clothes_icons_collar_002")); // daily_prizes[10] = new List <DailyPrize>(); daily_prizes[10].Add(new CoinsPrize(500)); daily_prizes[10].Add(new InfHeartsPrize(3)); daily_prizes[11] = new List <DailyPrize>(); daily_prizes[11].Add(new CoinsPrize(750)); daily_prizes[11].Add(new InfHeartsPrize(5)); daily_prizes[12] = new List <DailyPrize>(); daily_prizes[12].Add(new CoinsPrize(1000)); daily_prizes[12].Add(new InfHeartsPrize(8)); daily_prizes[12].Add(new TextirePrize("chair_002_04")); daily_prizes[13] = new List <DailyPrize>(); daily_prizes[13].Add(new CoinsPrize(1500)); daily_prizes[13].Add(new InfHeartsPrize(10)); daily_prizes[14] = new List <DailyPrize>(); daily_prizes[14].Add(new CoinsPrize(2000)); daily_prizes[14].Add(new InfHeartsPrize(15)); daily_prizes[14].Add(new TextirePrize("clothes_icons_glasses_002")); // daily_prizes[15] = new List <DailyPrize>(); daily_prizes[15].Add(new CoinsPrize(500)); daily_prizes[15].Add(new InfHeartsPrize(3)); daily_prizes[16] = new List <DailyPrize>(); daily_prizes[16].Add(new CoinsPrize(750)); daily_prizes[16].Add(new InfHeartsPrize(5)); daily_prizes[17] = new List <DailyPrize>(); daily_prizes[17].Add(new CoinsPrize(1000)); daily_prizes[17].Add(new InfHeartsPrize(8)); daily_prizes[17].Add(new TextirePrize("floor_hs_tile_004")); daily_prizes[18] = new List <DailyPrize>(); daily_prizes[18].Add(new CoinsPrize(1500)); daily_prizes[18].Add(new InfHeartsPrize(10)); daily_prizes[19] = new List <DailyPrize>(); daily_prizes[19].Add(new CoinsPrize(2000)); daily_prizes[19].Add(new InfHeartsPrize(15)); daily_prizes[19].Add(new TextirePrize("clothes_icons_skin_002")); // daily_prizes[20] = new List <DailyPrize>(); daily_prizes[20].Add(new CoinsPrize(500)); daily_prizes[20].Add(new InfHeartsPrize(3)); daily_prizes[21] = new List <DailyPrize>(); daily_prizes[21].Add(new CoinsPrize(750)); daily_prizes[21].Add(new InfHeartsPrize(5)); daily_prizes[22] = new List <DailyPrize>(); daily_prizes[22].Add(new CoinsPrize(1000)); daily_prizes[22].Add(new InfHeartsPrize(8)); daily_prizes[22].Add(new TextirePrize("floor_ktch_tile_004")); daily_prizes[23] = new List <DailyPrize>(); daily_prizes[23].Add(new CoinsPrize(1500)); daily_prizes[23].Add(new InfHeartsPrize(10)); daily_prizes[24] = new List <DailyPrize>(); daily_prizes[24].Add(new CoinsPrize(2000)); daily_prizes[24].Add(new InfHeartsPrize(15)); // daily_prizes[25] = new List <DailyPrize>(); daily_prizes[25].Add(new CoinsPrize(500)); daily_prizes[25].Add(new InfHeartsPrize(3)); daily_prizes[26] = new List <DailyPrize>(); daily_prizes[26].Add(new CoinsPrize(750)); daily_prizes[26].Add(new InfHeartsPrize(5)); daily_prizes[27] = new List <DailyPrize>(); daily_prizes[27].Add(new CoinsPrize(1000)); daily_prizes[27].Add(new InfHeartsPrize(8)); daily_prizes[27].Add(new TextirePrize("wall_hs_tile_005")); daily_prizes[28] = new List <DailyPrize>(); daily_prizes[28].Add(new CoinsPrize(1500)); daily_prizes[28].Add(new InfHeartsPrize(10)); daily_prizes[29] = new List <DailyPrize>(); daily_prizes[29].Add(new CoinsPrize(2000)); daily_prizes[29].Add(new InfHeartsPrize(15)); // daily_prizes[30] = new List <DailyPrize>(); daily_prizes[30].Add(new CoinsPrize(500)); daily_prizes[30].Add(new InfHeartsPrize(3)); daily_prizes[31] = new List <DailyPrize>(); daily_prizes[31].Add(new CoinsPrize(750)); daily_prizes[31].Add(new InfHeartsPrize(5)); daily_prizes[32] = new List <DailyPrize>(); daily_prizes[32].Add(new CoinsPrize(1000)); daily_prizes[32].Add(new InfHeartsPrize(8)); daily_prizes[32].Add(new TextirePrize("wall_ktch_tile_004")); daily_prizes[33] = new List <DailyPrize>(); daily_prizes[33].Add(new CoinsPrize(1500)); daily_prizes[33].Add(new InfHeartsPrize(10)); daily_prizes[34] = new List <DailyPrize>(); daily_prizes[34].Add(new CoinsPrize(2000)); daily_prizes[34].Add(new InfHeartsPrize(15)); header.text = TextManager.getText("mm_daily_prize_header"); button_open_text.text = TextManager.getText("mm_daily_prize_button_open_text"); button_pick_up_text.text = TextManager.getText("mm_daily_prize_button_pick_up_text"); datetimeData = new StorableData <DatetimeData>("DatetimeData"); ServeredData data = new ServeredData(); data.GetCurDateTime((ServeredData.TimeAnswer answ) => { need_update = true; datetime = answ.data.time; }, () => { }); }
// Use this for initialization public override void ExtendedStart() { tutorCatShow = new TutorCatShow(); showed_items = new StorableData <ShowedItems>("CatShowShowedItems"); if (tutorCatShow.data.content.done) { tutorCatShow.end_catshow_timer.GetTimeToEndShow( (data) => { end_cat_show_timer = data.data.time; }, (data) => { end_cat_show_timer = 24 * 60 * 60; }); scoreboard_data = new ServeredData(); scoreboard_data.GetScoreBoard((data) => { int place = data.data.place > 5 ? data.data.place - 4 : 1; for (int i = data.data.data.Count - 1; i >= 0; --i) { var d = data.data.data[i]; object[] objs = new object[3]; objs[0] = d.score; objs[1] = d.id.Length >= 8 ? d.id.Substring(0, 7) : d.id; objs[2] = place; place++; Message msg = new Message(); msg.parametrs = new CommonMessageParametr(objs); msg.Type = CatShow.CatShowMessageType.ADD_RAIT_ITEM; MessageBus.Instance.SendMessage(msg, true); } }, () => { Debug.Log("ERROR"); }); } else { tutorCatShow.UpdateValue(DataController.instance.catsPurse.Beauty); var time = 24 * 60 * 60; if (tutorCatShow.data.content.play_count == 0) { end_cat_show_timer = time; tutorCatShow.end_catshow_timer.SetTime("tutor_catshow", time); } else { tutorCatShow.end_catshow_timer.GetTime("tutor_catshow", (data) => { end_cat_show_timer = data.data.time; }, (data) => { end_cat_show_timer = time; tutorCatShow.end_catshow_timer.SetTime("tutor_catshow", time); }); } tutorCatShow.GetTutorSCoreBoard(); } }