void Start() { anim = GetComponent <Animator>(); move = GetComponent <Movement>(); coll = GetComponent <CollCheck>(); sr = GetComponent <SpriteRenderer>(); }
private void Awake() { //setup inputs jump = new Button("Jump"); pick = new Button("Pick"); aim = new Button("Aim"); //setup components rb = GetComponent <Rigidbody2D>(); sp = GetComponent <SpriteRenderer>(); cc = GetComponent <CollCheck>(); }
void Start() { coll = GetComponent <CollCheck>(); rb = GetComponent <Rigidbody2D>(); anim = GetComponentInChildren <SwitchAnim>(); }