Exemplo n.º 1
0
 // Use this for initialization
 void Start()
 {
     pulseTimer = pulseDur;
     hb = GameObject.FindGameObjectWithTag ("Player").GetComponent<HoboExposure> ();
     sr = this.GetComponent<SpriteRenderer> ();
 }
Exemplo n.º 2
0
 // Use this for initialization
 void Start()
 {
     this.GetComponent<Rigidbody2D> ().AddForce(new Vector2 (-200f, -m_force));
     exp = GameObject.FindGameObjectWithTag ("Player").GetComponent<HoboExposure> ();
 }