Question by
pradeepdmsp · Mar 06, 2017 at 09:23 AM ·
c#multiplayerdrag-and-dropturn-basedcard
Detect whether the parent object has child object or not?
right side circle type game object can drag and drop to 1,2,.....7 places.. player can ..choose whatever the place they wanted to put..it can be vary.. How Do i deteck if the parent object has card..(gameobject)
unityed.jpg
(84.3 kB)
Comment
Best Answer
Answer by LiloE · Mar 06, 2017 at 09:35 AM
i want to listener when ..panel load child object ..like delegate card has loaded or not? to check
You can add colliders to both, make one of them trigger and call the childCount
on the OnTriggerEnter` method.