Answer by Random Indie
One way you could do it would be to either disabable the component by setting enable to false. You might have to do that from another script though as I'm not sure you can get a disabled script to...
View ArticleAnswer by equalsequals
Whenever I see a question involving "do x for t seconds" I always suggest using the MonoBehaviour Coroutine. Do something like this:void OnTriggerEnter(Collider other) { if(other.gameObject.name !=...
View ArticleAnswer by gianni123
disable script(WORK):function OnTriggerEnter (collision : Collider) { if (collision.gameObject.tag == "Player") { GameObject.Find("messoplayer").GetComponent("input").enabled=false;...
View Article
More Pages to Explore .....