Hi,
I am making a fireworks simulator game. And i wanted to make something like, when you press (E) on the object. it activates. and if you press (E) Again that you cant deactivate it!
Hi,
I am making a fireworks simulator game. And i wanted to make something like, when you press (E) on the object. it activates. and if you press (E) Again that you cant deactivate it!
Look at Input.GetKeyDown.
Check if the object is active with myObject.activeSelf. Set the object active with myObject.SetActive (true) if it’s not active, and myObject.SetActive (false) if it’s already active.