Quantcast
Channel: Answers for "how to stop a script for a while?"
Browsing latest articles
Browse All 6 View Live

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 Article



Answer 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 Article

Answer by gianni123

disable script(WORK):function OnTriggerEnter (collision : Collider) { if (collision.gameObject.tag == "Player") { GameObject.Find("messoplayer").GetComponent("input").enabled=false;...

View Article
Browsing latest articles
Browse All 6 View Live




Latest Images