protected override void OnInit() { base.OnInit(); NeedUpdateByFrame = true; //IsFullScreen = true; m_game_view = Make <ScanGameView>("InGame"); m_result_view = Make <ScanResultView>("Result"); m_reward_view = Make <ScanRewardView>("Panel_energy"); m_fly_vit_icon = Make <GameImage>("Image_Fly_Vit"); m_fly_vit_ts = m_fly_vit_icon.GetComponent <TweenPosition>(); m_fly_vit_aim = Make <GameUIComponent>("Panel_top:Image_energy:Image_icon"); }
protected override void OnInit() { base.OnInit(); m_icon_bg = Make <GameImage>(this.gameObject); m_canvasgroup = m_icon_bg.GetComponent <CanvasGroup>(); m_icon_img = Make <GameImage>("Icon"); m_effect = Make <GameUIEffect>("UI_jingyuansuipian"); if (null != m_effect) { m_effect.EffectPrefabName = "UI_jingyuansuipian.prefab"; m_effect.Visible = false; } }
protected override void OnInit() { base.OnInit(); m_desc_txt = this.Make <GameLabel>("Panel_down:Image_1:Text"); m_output_title_txt = this.Make <GameLabel>("Panel_down:RawImage:Panel_output:Text_2"); m_time_txt = Make <GameLabel>("Panel_down:RawImage:Panel_output:Image:Text"); m_thumbnail_tex = Make <GameTexture>("Panel_down:RawImage"); m_output_grid = this.Make <GameUIContainer>("Panel_down:RawImage:Panel_output:Grid"); m_case_name_txt = this.Make <GameLabel>("Panel_down:RawImage:Image:Text"); m_action_btn = this.Make <GameButton>("Panel_down:btn_action"); m_action_btn_title_txt = m_action_btn.Make <GameLabel>("Text"); m_action_btn_effect = m_action_btn.Make <GameUIEffect>("UI_pintukaishi_anniu"); m_action_btn_effect.EffectPrefabName = "UI_pintukaishi_anniu.prefab"; m_ticket_icon = m_action_btn.Make <GameImage>("Image_item"); m_action_btn_num_txt = m_action_btn.Make <GameLabel>("Text_item"); this.m_btnClose = Make <GameButton>("Panel_down:Button_close"); m_video_root = Make <GameUIComponent>("Panel_down:video_Image"); m_video = m_video_root.Make <GameVideoComponent>("RawImage_Video"); m_btn_play_video = Make <GameImage>("Panel_down:RawImage:Image_play"); m_btn_close_video = m_video.Make <GameButton>("Btn_Close_Video"); m_bg_img = Make <GameImage>("RawImage"); m_bg_alpha = m_bg_img.GetComponent <TweenAlpha>(); m_tween_root = Make <GameUIComponent>("Panel_down"); //m_show_tween_scale = m_tween_root.GetComponent<TweenScale>(); //m_show_tween_scale.AddTweenCompletedCallback(ShowTweenScaleFinished); //var show_tween_poses = m_tween_root.GetComponents<TweenPosition>().Where((i) => UITweenerBase.TweenTriggerType.Manual == i.m_triggerType); //m_show_tween_pos = show_tween_poses.First(); //var show_tween_alphas = m_tween_root.GetComponents<TweenAlpha>().Where((i) => UITweenerBase.TweenTriggerType.OnShow == i.m_triggerType); //m_show_tween_alpha = show_tween_alphas.First(); }