first off why does this
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class TransitionAnim : MonoBehaviour
{
private Animator anim;
// Start is called before the first frame update
void Start()
{
anim = GetComponent();
}
// Update is called once per frame
void Update()
{
if(Input.GetAxis(Horizontal) || Input.GetAxis(Vertical))
{
anim.SetBool(“isRunning”, true);
}
else
{
anim.SetBool(“isRunning”, false);
}
}
}
show me this
Assets\TransitionAnim.cs(17,55): error CS0103: The name ‘Vertical’ does not exist in the current context
it never showed this until I went in and tried to add some stuff, but then ended up going back to exactly how it was saved initially, which is what is above. Its been happening a fair amount in other random scripts. It works then i go in and tinker, it doesn’t work and i put it back the way it was, and all of a sudden things are just unknown to unity for some ungodly reason.
My other problem is when i am attempting to create a transition, my character in the preview is somehow disconnected from whatever is happening in the preview window. It shows some sort of XYZ axis thing moving around. So nothing ever transitions. i’m new and super confused. appreciate any help. Also this script never actually performed a transition when it didn’t get any errors. IDK. again, I’m new and its super discouraging.