- Home /
Question by
kastiya · Nov 04, 2020 at 03:40 PM ·
c#collideroverlapsphere
Want to spawn a box on other box but don't want those boxes to have same tag on each other using tag
So I have 2 bad Box and 2 Nice box [There are 2 tags assigned to each box] Box Dead1 (tag = Box1) Box Dead2 (tag = Box2) Box Nice1 (tag = Box1) Box Nice2 (tag = Box2)
I want if Box Dead 1[Red] is above then below Box Nice 2[Blue] should be there [right] but if Box Dead1[Red] is there then below Box Nice1[Yellow] should not be there [wrong]. How can I code in unity3d to get this desired output?
screenshot-241.png
(288.9 kB)
Comment
Your answer
Follow this Question
Related Questions
Multiple Cars not working 1 Answer
OverlapSphere ignoring all colliders when I use the layerMask parameter. 1 Answer
Distribute terrain in zones 3 Answers
Overlapsphere not returning all colliders it touches 1 Answer
Dying Script error 2 Answers