Beispiel #1
0
    //更新
    private void Update()
    {
        RestrictJump();

        if (m_manager.IsPlay() == false)
        {
            return;
        }

        if (Input.GetKeyDown(KeyCode.Z))
        {
            m_HP.Damage(1);
        }

        if (Input.GetKeyDown(KeyCode.X))
        {
            m_HP.Heal(1);
        }

        Invincible();

        m_invincibleTimer.Update();

        Flash();
    }