Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //turn a thing on or off off of a keypress
- //The function sets the object to whatever it is not
- public void Invisible() {
- if (Input.GetKeyDown(KeyCode.Space)) {
- practiceScriptMesh.enabled = !practiceScriptMesh.enabled;
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement