Search Unity

Need Help with Disabling scripts (c#)

Discussion in 'Scripting' started by traderain, Oct 31, 2014.

  1. traderain

    traderain

    Joined:
    Jul 7, 2014
    Posts:
    108
    Okay, so i have a gameobject which has 2 scipts on it "Mouse Look" and "Player Movement" and in the child of that a camera which has a "Mouse Look" as well (All c#) How can i disable all of them? ( i have other scripts on them).
    Thanks for any help.
     
  2. laurelhach

    laurelhach

    Joined:
    Dec 1, 2013
    Posts:
    229
  3. traderain

    traderain

    Joined:
    Jul 7, 2014
    Posts:
    108
    I need to disable the scripts on the object and on the child not the whole thing.
     
  4. laurelhach

    laurelhach

    Joined:
    Dec 1, 2013
    Posts:
    229
  5. makeshiftwings

    makeshiftwings

    Joined:
    May 28, 2011
    Posts:
    3,350
  6. laurelhach

    laurelhach

    Joined:
    Dec 1, 2013
    Posts:
    229
    Well actually in the part 11. it explains what you just wrote ... so I don't think he should ignore me :)
     
  7. traderain

    traderain

    Joined:
    Jul 7, 2014
    Posts:
    108
    Thank you for the help! :)