コード例 #1
0
    public void FixedTick()
    {
        if (!isEnabled)
        {
            return;
        }
        float moveH    = Input.GetAxis("Horizontal");
        float moveV    = Input.GetAxis("Vertical");
        var   movement = new Vector3(moveH, 0.0f, moveV);

        _player.AddForce(movement * Speed);
    }