Exemplo n.º 1
0
    // Update is called once per frame
    void Update()
    {
        Heart = SL.GetH();
        O_2   = SL.GetO();

        Ontext();//テキスト表記を行う関数
        timer += Time.deltaTime;


        HA(time);//ドキドキを行う関数
    }
Exemplo n.º 2
0
    // Update is called once per frame
    void Update()
    {
        H = SL.GetH();
        O = SL.GetO();

        if (stand_by == false)
        {
            if (on == false)
            {
                if (H != 0)
                {
                    on            = true;
                    HandText.text = "♡そのまま維持♡";
                    Debug.Log("計測開始");
                }
            }//一度値を取ったらスイッチをtrueに

            if (on == true)
            {
                TotalTimer += Time.deltaTime;
                if (TotalTimer > Limiter)
                {
                    Debug.Log("計測中");
                    Totalnum += H;
                    num++;
                }

                if (TotalTimer > LImit + Limiter && O != 0)
                {
                    ave = Totalnum / num;
                    Debug.Log("AVE : " + ave);
                    stand_by      = true;
                    HandText.text = "♡OKそのまま維持♡";
                    TotalTimer    = 0;
                }
            }
        }
        else
        {
            TotalTimer += Time.deltaTime;
            if (TotalTimer > 3)
            {
                OFFIMOB();
                Allstand_by = true;
            }
        }
    }