NormalItemView ShowItem(SCAN_GAME_ITEM_TYPE type_, Vector2 local_pos_) { if (SCAN_GAME_ITEM_TYPE.NORMAL == type_) { var normal = m_normal_grid.GetAvaliableContainerElement <NormalItemView>(); Debug.Log("Born " + normal); normal.SetPos(local_pos_); normal.Visible = true; m_active_item_view_queue.Enqueue(new touch_item_view_type() { m_id = normal.Unique_id, m_type = SCAN_GAME_ITEM_TYPE.NORMAL }); return(normal); } else if (SCAN_GAME_ITEM_TYPE.SPECIAL == type_) { //var special = m_special_grid.GetAvaliableContainerElement<SpecialItemView>(); //special.Visible = true; //m_active_item_view_queue.Enqueue(new touch_item_view_type() { m_id = special.Unique_id, m_type = SCAN_GAME_ITEM_TYPE.SPECIAL }); return(null); } return(null); }
public void ShowFlyIcon(long clue_id_) { var fly = m_fly_icons_grid.GetAvaliableContainerElement <FlyIconItemView>(); Dictionary <int, HashSet <long> > scan_datas = ScanDataManager.Instance.Examin_clue_datas(m_scan_id); int scan_type = 0; foreach (var kvp in scan_datas) { if (kvp.Value.Contains(clue_id_)) { scan_type = kvp.Key; break; } } for (int i = 0; i < m_clue_progress_grid.ChildCount; ++i) { var progress = m_clue_progress_grid.GetChild <ClueProgressItemView>(i); if (scan_type == m_clue_progress_grid.GetChild <ClueProgressItemView>(i).Scan_type) { fly.Refresh(clue_id_, ConfFindClue.Get(clue_id_).icon, m_fly_icons_grid.Position, progress.Position); fly.Visible = true; break; } } }
public void FlyVitNum(int num_) { var fly_num = m_num_grid.GetAvaliableContainerElement <FlyNumItemView>(); fly_num.Refresh(num_); fly_num.Visible = true; }
void Fire(int count_) { var vit_effect = m_gun.GetAvaliableContainerElement <FlyVitEffectItemView>(); vit_effect.Refresh(count_, m_cur_wave_from_pos, m_cur_wave_to_pos); vit_effect.Visible = true; m_time_sum = 0; --m_cur_wave.fly_count; if (0 == m_cur_wave.fly_count) { m_is_finished = true; } }
public void ShowDetail(long clue_id_) { Dictionary <int, HashSet <long> > scan_datas = ScanDataManager.Instance.Examin_clue_datas(m_scan_id); int scan_type = 0; foreach (var kvp in scan_datas) { if (kvp.Value.Contains(clue_id_)) { scan_type = kvp.Key; break; } } var detail = m_details_grid.GetAvaliableContainerElement <ClueDetailView>(); detail.Refresh(clue_id_, ConfFindClue.Get(clue_id_).icon, ConfFindClue.Get(clue_id_).detail); detail.Visible = true; }
public void ShakeVit(FlyVitEffectItemView view_) { m_vit_icon.Visible = false; if (view_ is FlyNromalVitEffectItemView) { #if MULTI_SHAKE var shake = m_normal_shake_effect_grid.GetAvaliableContainerElement <ShakeVitEffectItemView>(); shake.RegisterRecycleParent(m_normal_shake_effect_grid); shake.Visible = true; #else m_normal_shake.Shake(); #endif } else if (view_ is FlySpecialVitEffectItemView) { #if MULTI_SHAKE m_special_shake_effect.Visible = true; #else m_special_shake.Shake(); #endif } }