예제 #1
0
    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
예제 #2
0
    public void OnShareB()
    {
        HotDogRoot.GetSingle().PlaySe("dianji");
        // UIEngine.BackTo<HotMainPage>();

        share_root.SetActive(true);
        share_ani.Play("HotShareAni");
    }
예제 #3
0
 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");
 }
예제 #4
0
 // 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");
         }
     }
 }
예제 #5
0
    // 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;
    }
예제 #6
0
    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>();
    }
예제 #7
0
 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;
     }
 }
예제 #8
0
 public void RankB()
 {
     HotDogRoot.GetSingle().PlaySe("dianji");
     UIEngine.Forward <HotRankPage>();
 }
예제 #9
0
 public override void OnNavigatedTo()
 {
     HotDogRoot.GetSingle().PlayBgm("mainpage_mus");
     //EmotionSDK.InitDetection();
     //EmotionSDK.OpenDetection();
 }
예제 #10
0
 public void OnShop()
 {
     HotDogRoot.GetSingle().PlaySe("dianji");
     ImitateUIService.Dialog("功能暂未开放");
 }
예제 #11
0
 public void OnBack()
 {
     HotDogRoot.GetSingle().PlaySe("dianji");
     UIEngine.Back();
 }