Search Unity

How to use another scripts variable in c# scripitng?

Discussion in 'Works In Progress - Archive' started by Theinsanekiller, Jun 1, 2012.

  1. Theinsanekiller

    Theinsanekiller

    Joined:
    Jun 1, 2012
    Posts:
    27
    Hello Everyone.
    I am very new to unity and i am using unity with c# scripting. I have initialized a int variable in a script called PlayerMovement and i want to use the value of same int variable in other script called EnemyMovement. pls help me how to do that. pls help me as soon as possible.
    Thanx in advance.....
     
  2. jake-gr

    jake-gr

    Joined:
    Oct 27, 2011
    Posts:
    93