// Update is called once per frame
    void Update()
    {
        //カウントの判定
        if (speedup)
        {
            MurataScript.GAGE();
            //speedup = true;//5以上になったらtrue
            Debug.Log("参照したんご");
        }
        futonpurge();


        //移動
        if (Input.GetKey("up"))
        {
            transform.position += transform.forward * speed * Time.deltaTime;
        }
        if (Input.GetKey("down"))
        {
            transform.position -= transform.forward * speed * Time.deltaTime;
        }
        if (Input.GetKey("right"))
        {
            transform.position += transform.right * speed * Time.deltaTime;
        }
        if (Input.GetKey("left"))
        {
            transform.position -= transform.right * speed * Time.deltaTime;
        }
    }
Beispiel #2
0
    // Update is called once per frame
    void Update()
    {
        //ダメージ受けたら(仮)
        //if (Input.GetKey(KeyCode.Space))
        //{
        //    DamageFlg = true;
        //}

        //if (DamageFlg==false)
        //{
        //    //Move();
        //}

        //if (DamageFlg == true)
        //{
        //    StartCoroutine("GetDamage");
        //}

        //カウントの判定
        if (speedup)
        {
            MurataScript.GAGE();
        }
        futonpurge();
    }