Guys I really need help! I watched a video in script and added a script to my character and i thought i learn to make a animator controller but it didn’t work.
The script :
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class Skeleton : MonoBehaviour {
public Animator anim;
// Use this for initialization
void Start ()
{
anim = GetComponent();
}
// Update is called once per frame
void Update ()
{
if (Input.GetKeyDown (“1”)) {
anim.Play(“Skeleton@Stand”,-1,0f);
}
}
}
Please help!