using System.Collections; using System.Collections.Generic; using UnityEngine; public partial class SaionjiScript : MonoBehaviour { HitBoxTest hitbox; Animator animator; int IdleHash; // Start is called before the first frame update void Start() { animator = GetComponent(); // SetupAbilities(); IdleHash = Animator.StringToHash("Idle Fight 0"); } private void OnCollisionEnter(Collision collision) { Debug.Log("OnCollisionEnter()"); } private void OnTriggerEnter(Collider other) { Debug.Log("OnTriggerEnter()"); } private void Update() { if(m_CurrentAblity != null) m_CurrentAblity.OnUpdate(); //AnimatorStateInfo info = animator.GetCurrentAnimatorStateInfo(0); //if(info.normalizedTime > 0.8) //{ // animator.CrossFade(IdleHash, 0.11f); //} } }