// Use this for initialization void Start() { player = gameObject.GetComponentInParent <SimplePlayerMovement>(); rb2d = gameObject.GetComponentInParent <Rigidbody2D>(); anim = gameObject.GetComponentInParent <Animator> (); spriRend = gameObject.GetComponentInParent <SpriteRenderer> (); }
// Use this for initialization void Start() { player = gameObject.GetComponentInParent <SimplePlayerMovement>(); anim = gameObject.GetComponentInParent <Animator> (); }