Exemplo n.º 1
0
 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>();
 }
Exemplo n.º 2
0
        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>();
            }
        }
Exemplo n.º 3
0
        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);
        }