summaryrefslogtreecommitdiff
path: root/Assets/Scripts/Test/SaionjiScript.cs
blob: c252645b0a49acd77d72f7eb96b2ed737a4d7d3a (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
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()
    {

        //AnimatorStateInfo info = animator.GetCurrentAnimatorStateInfo(0);
        //if(info.normalizedTime > 0.8)
        //{
        //    animator.CrossFade(IdleHash, 0.11f);
        //}
    }

}