blob: 84e658de9a8c9e9c741244573c0bbf90f531380e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
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<Animator>();
// 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);
//}
}
}
|