Script:
Camera: using System.Collections;using System.Collections.Generic;using UnityEngine; - Pastebin.com
PlayerController: using System.Collections;using UnityEngine;public class PlayerController : - Pastebin.com
Video showing the problem:
https://www.youtube.com/watch?v=thJwnY4Y5fI
In this video I only press “w” to move forward and move the camera around.
Issue:
Player movement only works as intended if the GameObject containing the PlayerController script is selected.