Create a C# Script called "ToggleWithButton" in your project panel
Extra Challenge: How would you Enable/Disable more than 1 object using the same switch?
OR Use this key asset.
If it doesn't work, make sure the key has a box collider since we have to touch a collider to activate the function.
Created 23 days ago
Teach coding to your students with MVCode Teach
MVCode offers an integrated product designed to teach coding to students.
Learn more about MVCode Teach