public void SetValues(CharacterEntry value) { atb = value; if (_limbs == null) { _limbs = GetComponent <CharacterLimbs>(); } _limbs.Attributes = value; }
void Start() { _limbs = GetComponent <CharacterLimbs>(); _rb = GetComponent <Rigidbody2D>(); _anim = GetComponentInChildren <Animator>(); StartCoroutine(Brain()); StartCoroutine(Attacks()); vida = atb.Vida; }