UnityScripterAI
Discord ↗
Link Copied to Clipboard
×
"animation controller"
using System.Collections; using System.Collections.Generic; using UnityEngine; public class AnimationControl : MonoBehaviour { public static AnimationControl instance ; Animator anim; private void Awake() { if(instance == null) { instance = this; } } // Start is called before the first frame update void Start() { anim = GetComponent<Animator>(); } public void AnimationPlay() { anim.SetTrigger("DeathAnim"); //bool Death = true; //anim.SetBool("Death", true); } }