コード例 #1
0
    // Update is called once per frame
    void Update()
    {
        horizontalMove = Input.GetAxisRaw("Horizontal") * Defines.DEFAULTSPEED;

        // Jump Handler
        if (Input.GetButtonDown("Jump"))
        {
            isJumping = true;
        }

        // Umbrella Handler
        if (Input.GetKey(KeyCode.F))
        {
            ph.ActivateUmbrella();
        }
        else
        {
            ph.DeactivateUmbrella();
        }

        // Extinguisher Handler
        if (Input.GetKey(KeyCode.G))
        {
            ph.StartExtinguisher();
        }
        else
        {
            ph.StopExtinguisher();
        }
    }