void Awake() { rigid = this.GetComponent <Rigidbody>(); pj = this.GetComponent <PlayerJump2>(); state = this.GetComponent("PlayerState") as PlayerState; }
void Awake() { rigid = this.GetComponent <Rigidbody>(); pj = this.GetComponent <PlayerJump2>(); sr = this.GetComponent <SpriteRenderer>(); }