This commit is contained in:
magn9775
2024-04-20 11:31:59 +02:00
parent 4841d8d5bc
commit c598a700e2
76 changed files with 680155 additions and 15 deletions

View File

@@ -0,0 +1,26 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class NPCimproved : MonoBehaviour
{
// Animator animator;
public Animator animator;
void Start()
{
}
void Update()
{
}
void OnCollisionEnter(Collision col) {
if (col.gameObject.tag == "Player")
{
animator.SetTrigger("hit");
}
}
}