You need a Collider attached to the same GameObject
, it is also described on the Unity reference page:
https://docs.unity3d.com/ScriptReference/MonoBehaviour.OnTriggerEnter.html
1329343592 लिखा2. AI problem.
I want to ask you to implement the function for me and give examples. thank you!
Please note that this is a forum for Spine specific questions and your questions are general questions about how to achieve certain things in Unity.
The most suitable place would be the Unity forum here: https://forum.unity.com/.
Also before posting questions on the Unity forum, we would recommend getting familiar with Unity first. There are many learning resources available online for free, some gathered in this forum posting here:
Problem with Classes ( maybe with Classes)