unity3d - Disabling a Script attached to a game object in Unity C# -


i have update function check if equal true , if equal true run code want whole script disabled. please help, thanks!

you should use enabled field. try following

gameobject.getcomponent<emailsender >().enabled = false; 

Comments

Popular posts from this blog

java - Suppress Jboss version details from HTTP error response -

gridview - Yii2 DataPorivider $totalSum for a column -

Sass watch command compiles .scss files before full sftp upload -