c# animation.Play("animation")
HI I want to play animation on my character with script. I found solution of my problem on internet, because my one got an error. Web solves gets error too. I dont understand why. Here is my code: using System.Collections; using System.Collections.Generic; using UnityEngine;
public class kontroler : MonoBehaviour {
public bool animation_bool;
void Update()
{
if(animation_bool == true)
{
animation.Play("dips");
}
if(Input.GetButtonDown("space"))
{
animation_bool = true;
}
}
} It gives me error: Unityengine.component doesn't have play option. Some of my scripts hadn't error, but they weren't working. Can someone help me?
Comment