Untitled

mail@pastecode.io avatar
unknown
csharp
a month ago
572 B
3
Indexable
Never
    void OnLook(InputValue value)
    {
        if(Application.platform == RuntimePlatform.WebGLPlayer)
        {
            mouseX = value.Get<Vector2>().x * mouseSensitivity * Time.deltaTime;
            mouseY = value.Get<Vector2>().y * mouseSensitivity * Time.deltaTime;
            mouseX = mouseX / 2;
            mouseY = mouseY / 2;
        }

        else
        {
            mouseX = value.Get<Vector2>().x * mouseSensitivity * Time.deltaTime;
            mouseY = value.Get<Vector2>().y * mouseSensitivity * Time.deltaTime;
        }

    }
Leave a Comment