Quantcast
Channel: GameDev.net
Viewing all articles
Browse latest Browse all 17625

(unity+C#) How do i create a method to hide a text object, once the player leaves the trigger zone?

$
0
0

hello all. i need help for a simple problem, but might require long explanation. programm 

i've created a text object that is the letter E that pops up whenever the player gets close to an NPC. it works, but the letter stays there forever. 

at first i've created (based on some tutorial)  a destroy command, but once it's destroyed it won't reappear, even though i've used a method with “Instantiate” and even though it's placed in the update method. 

i simply would like to know what lines of code i should put …


Viewing all articles
Browse latest Browse all 17625

Trending Articles



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