private void SetRefrences() { playerMovement = this.GetComponent <Player_Movement_TwoDSS>(); animCon = this.GetComponent <Animator_Controller>(); spriteRen = this.GetComponent <SpriteRenderer>(); rb = this.GetComponent <Rigidbody2D>(); if (IsPlayer()) { equipmentManager = this.GetComponent <Equipment_Manager>(); } }
private void Start() { playerMovement = this.GetComponentInParent <Player_Movement_TwoDSS>(); player = playerMovement.gameObject; }