I get these errors when im trying to make my sprint,walk,idle Script D:
Assets/Scripts/Player.js(36,18): BCE0044: expecting ), found ‘=’.
Assets/Scripts/Player.js(36,20): BCE0043: Unexpected token: 0.
Assets/Scripts/Player.js(39,5): BCE0044: expecting :, found ‘}’.
Here is the full script
var PlayerState : float;
var PlayerAnimSec : GameObject;
function Update ()
{
PlayerStateController();
PlayerAnims();
}
function PlayerStateController()
{
if ((Input.GetAxis(“Vertical”) !=0 || Input.GetAxis(“Horizontal”) !=0))