void Start() { coll = GetComponent <CollCheck>(); rb = GetComponent <Rigidbody2D>(); anim = GetComponentInChildren <SwitchAnim>(); }
private void Start() { anim = FindObjectOfType <SwitchAnim>(); move = FindObjectOfType <Movement>(); sr = GetComponent <SpriteRenderer>(); }