Quantcast
Viewing all articles
Browse latest Browse all 87

Answer by diegzumillo

To change the parent of something simply change the variable transform.parent. You can assign any gameobject to that variable. Raycasting is one way to go, if you don't have the card/gameobject referenced in your script. It depends on how your game is structured. If this is a card game, I would keep all the player's cards as a big array on his script and simply cycle through that array to perform actions.

Viewing all articles
Browse latest Browse all 87

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>