Im confused how to tell unity that this is a variable in c#
playerMove = Input.GetAxis("Vertical") * speed * Time.deltaTime; playerTurn = Input.GetAxis ("Horizontal") * turnSpeed * Time.deltaTime; playerStrafe = Input.GetAxis ("Strafe") * strafeSpeed * Time.deltaTime
In C#, you need to declare the type of the variable. For example, since you’re dealing with Time.deltaTime here, you’re definitely going to have decimal numbers. That means these are going to be “float” type variables.
To declare a variable type, you format it as
//<type> <variableName> = <data>; //For example: float playerMove = Input.GetAxis("Vertical" * speed * Time.deltaTime;
You can find more information on C# variable types here: