private void SetRefrences() { rb = this.GetComponent <Rigidbody2D>(); characterStats = this.GetComponent <Character_Stats>(); animCon = this.GetComponent <Animator_Controller>(); hitBox = this.GetComponent <CapsuleCollider2D>(); //characterStats.KnockingBack += KnockBack; characterStats.callingDeath += SetDead; player = characterStats.gameObject; followMouse = GameObject.FindObjectOfType <Follow_Mouse>(); }
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 SetRefrences() { anim = this.GetComponent <Animator>(); animCon = this.GetComponentInParent <Animator_Controller>(); aIAnimCon = this.GetComponentInParent <AI_Animator_Controller>(); characterStats = this.GetComponentInParent <Character_Stats>(); equipmentManager = this.GetComponentInParent <Equipment_Manager>(); hitBox = this.GetComponent <PolygonCollider2D>(); //cloneAnimOveride = Instantiate(animOveride); }