Ejemplo n.º 1
0
    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Space))
        {
            // 판정 체크.
            theTimingManager.CheckTiming();
        }

        if (Input.GetKeyDown(KeyCode.Escape))
        {
            SceneManager.LoadScene(0);
        }
    }
Ejemplo n.º 2
0
 // Update is called once per frame
 void Update()
 {
     if (GameManger.instance.isStartGame)
     {
         CheckFaling();
         if (Input.GetKeyDown(KeyCode.A) || Input.GetKeyDown(KeyCode.S) || Input.GetKeyDown(KeyCode.D) || Input.GetKeyDown(KeyCode.W))
         {
             if (canMove && s_canPressKey && !isFalling)
             {
                 Calc();
                 //판정체크
                 if (theTimingManager.CheckTiming())
                 {
                     StartAction();
                 }
             }
         }
     }
 }
Ejemplo n.º 3
0
    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.W) || Input.GetKeyDown(KeyCode.S) || Input.GetKeyDown(KeyCode.D) || Input.GetKeyDown(KeyCode.A))
        {
            if (canMove)
            {
                Calc();

                //판정체크
                if (theTimingManager.CheckTiming())
                {
                    StartAction();
                }
                else
                {
                }
            }
        }
        //이동 목표값
    }
Ejemplo n.º 4
0
    private void Update()
    {
        if (!GameManager.instance.isStartGame)
        {
            return;
        }

        CheckFalling();

        if (Input.GetKeyDown(KeyCode.W) || Input.GetKeyDown(KeyCode.A) || Input.GetKeyDown(KeyCode.S) || Input.GetKeyDown(KeyCode.D))
        {
            if (canMove && s_CanPressKey && !isFalling)
            {
                Calc();

                if (timingManager.CheckTiming())
                {
                    StartAction();
                }
            }
        }
    }