im teaching myself how to create and script animations by myself and so far so good the creating part was easy but i cant figure out what the correct scripting is to make the animation play at the right time so this errors keep showing up
An instance of type 'UnityEngine.Animation' is required to access non static member 'Stop'.
An instance of type 'UnityEngine.Animation' is required to access non static member 'Play'.
and heres the lines of scripts that those errors are referencing
if(Input.GetButton("run"))
{
**Animation.Play("runninganimations");**
}
else
{
**Animation.Stop("runninganimations");**
}
↧