public override void OnNavigatedTo() { HotDogRoot.GetSingle().StopBgm(); m_time = 15.0f; TimeLabel.text = "15"; m_count = 0; m_eat_num = 0; CountLabel.text = "X0"; m_eat_tick = mc_eat_indev; m_bar.fillAmount = 1.0f; Root.SetActive(false); m_ready_num = 4; ReadyDown(); m_ready_root.SetActive(true); HotDogRoot.GetSingle().PlaySe("daojishi"); //m_offset_min = HotDotData.MinOffset; //m_offset_max = HotDotData.MaxOffset; // EmotionSDK.InitDetection(); //EmotionSDK.OpenDetection(); if (!Application.isEditor) { CreateCameraTextureForRawImage(); } // m_sicong_ani.CrossFade("rougou_ani_001"); }// Start is called before the first frame update
public void OnShareB() { HotDogRoot.GetSingle().PlaySe("dianji"); // UIEngine.BackTo<HotMainPage>(); share_root.SetActive(true); share_ani.Play("HotShareAni"); }
void Eat() { m_eat_num--; HotDogRoot.GetSingle().PlaySe("jujue"); m_count++; CountLabel.text = "X" + m_count; m_sicong_ani.Play("rougou_ani_001"); //m_sicong_ani.CrossFadeQueued("hot_ani_idle"); }
// Update is called once per frame void Update() { if (m_dage_tick > 0.0f) { m_dage_tick -= Time.deltaTime; if (m_dage_tick <= 0.0f) { m_dage_tick = -1.0f; HotDogRoot.GetSingle().PlaySe("dage"); } } }
// Start is called before the first frame update //public Texture2D tex; public void ContinueB() { //Shot(); //return; HotDogRoot.GetSingle().PlaySe("dianji"); if (m_texture != null) { m_texture.Stop(); } m_texture = null; UIEngine.Forward <HotFightPage>(); HotDotData.NeedAdjust = false; }
public void StartB() { // HotDotData.ShotIndev = float.Parse(m_input_field.text); HotDogRoot.GetSingle().PlaySe("dianji"); if (HotDotData.NeedAdjust) { UIEngine.Forward <HotAdjustPage>(); } else { UIEngine.Forward <HotFightPage>(); } //UIEngine.Forward<HotFightPage>(); }
void ReadyDown() { m_ready_num--; if (m_ready_num <= 0) { m_ready_root.SetActive(false); Root.SetActive(true); HotDogRoot.GetSingle().PlayBgm("battle_mus"); m_ready_time = -1.0f; } else { m_ready_label.text = m_ready_num.ToString(); m_ready_time = 1.0f; } }
public void RankB() { HotDogRoot.GetSingle().PlaySe("dianji"); UIEngine.Forward <HotRankPage>(); }
public override void OnNavigatedTo() { HotDogRoot.GetSingle().PlayBgm("mainpage_mus"); //EmotionSDK.InitDetection(); //EmotionSDK.OpenDetection(); }
public void OnShop() { HotDogRoot.GetSingle().PlaySe("dianji"); ImitateUIService.Dialog("功能暂未开放"); }
public void OnBack() { HotDogRoot.GetSingle().PlaySe("dianji"); UIEngine.Back(); }