Answer the question
In order to leave comments, you need to log in
How to do item pickup in Unity C#?
https://cloud.mail.ru/public/NVfu/3FdFER7Nd
Video descriptions: Box Collider from my player does not want to react to the cube (object), although everything seems to be normal in the script. But when I put the Item tag on the player, the Box Collider immediately sees that there is something in its zone with the Item tag and does not react to the cube.
Please write the correct squeak or snare on it, so that in the Box Collider zone (from the player) everything with the Item tag reacts, or make it so that the item is picked up at a certain distance. And only when the bear is pointed at him! Don't lift your back.
About 11 am I sit and ate to make such a script. It's 21:00 now.
Doc.
Answer the question
In order to leave comments, you need to log in
1. Follow the link https://unity.com/learn
2. Study all the material.
3. Write the desired script.
As you can see, writing your script is quite simple. You just need to read the. website.
ps
If something does not work out, I can upload a link to the video, how to read the office. website.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question