P
P
petrovich vartan2019-09-01 21:43:15
C++ / C#
petrovich vartan, 2019-09-01 21:43:15

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.
5d6c0fbfb7311804117876.png
5d6c0fd372651231811430.png
5d6c0fdf31fe5777776420.png
5d6c0fe6dee19923591882.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
G
Griboks, 2019-09-01
@Griboks

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.

X
Xveeder, 2019-09-02
@Xveeder

My friend, despite all the jokes from the locals - don't give up, learn to learn and you will succeed. I believe in you.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question