W
W
Wadim_wadim20002020-05-29 11:32:51
C++ / C#
Wadim_wadim2000, 2020-05-29 11:32:51

How to apply OnTriggerEnter2D to given script?

Immediately I give the "chest" script:
https://pastebin.com/kZP3Q8Tp
The question is: how to make the panel open not when the player is in a certain area, and not when the chest is touched with raycast. YES YES YES I KNOW that there is OnTriggerEnter2D but I don't know how to apply it there to make everything work. Please help me, I can't figure out how to do it at all!
Opened 14 hours ago
Yes, StorageInstance is specifically responsible for raycasting.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question