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
Post a Comment