Beispiel #1
0
    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.W))
        {
            m_player.Jump();
        }

        float x = Input.GetAxis("Horizontal");

        m_player.Move(Vector3.right * x);
    }