Question by 
               VivoGames · Feb 22, 2017 at 12:35 AM · 
                triggerscriptingbasicstriggers  
              
 
              How to disable script on trigger
In my game, I have it where there is a spinning saw and if you touch it you die. In order to get past it, you have to throw a cube at a stop button. When the cube hits the trigger on the button the saw stops spinning but, the death script is still enabled how would I disable it when the cube hits the button?
               Comment
              
 
               
              Answer by oStaiko · Feb 22, 2017 at 06:47 AM
Tutorial on Enabling Components
 SawGameObject.GetComponent<SawKillScript> ().enabled = false;
Your answer
 
 
             Follow this Question
Related Questions
Problem With Triggers? 0 Answers
Trigger events with bullets 0 Answers
Move a object with a trigger? 0 Answers
Checking when two triggers intersect 1 Answer
Enemy Trigger Colliders are triggering my player's trigger collider. Why? 1 Answer
 koobas.hobune.stream
koobas.hobune.stream 
                       
                
                       
			     
			 
                