Exemplo n.º 1
0
 void Awake()
 {
     rigid = this.GetComponent <Rigidbody>();
     pj    = this.GetComponent <PlayerJump2>();
     state = this.GetComponent("PlayerState") as PlayerState;
 }
Exemplo n.º 2
0
 void Awake()
 {
     rigid = this.GetComponent <Rigidbody>();
     pj    = this.GetComponent <PlayerJump2>();
     sr    = this.GetComponent <SpriteRenderer>();
 }