// Use this for initialization void Start() { rb2d = GetComponent <Rigidbody2D> (); anim = GetComponent <Animator> (); gt = GetComponentInChildren <GroundTrigger> (); ct = GetComponentInChildren <CrawlTrigger> (); wt = wallchecker.GetComponent <WallTrigger> (); }
// Use this for initialization void Start() { anim = GetComponent <Animation>(); gt = GetComponentInChildren <GroundTrigger> (); ct = GetComponentInChildren <CrawlTrigger> (); sr = GetComponent <SpriteRenderer>(); pa = GetComponent <PlayerAnimations>(); }
// Use this for initialization void Start() { //Assigns references rb2d = GetComponent <Rigidbody2D> (); sr = GetComponent <SpriteRenderer> (); gt = GetComponentInChildren <GroundTrigger> (); ct = GetComponentInChildren <CrawlTrigger> (); }