Example #1
0
    public void SetValues(CharacterEntry value)
    {
        atb = value;

        if (_limbs == null)
        {
            _limbs = GetComponent <CharacterLimbs>();
        }

        _limbs.Attributes = value;
    }
Example #2
0
    void Start()
    {
        _limbs = GetComponent <CharacterLimbs>();
        _rb    = GetComponent <Rigidbody2D>();
        _anim  = GetComponentInChildren <Animator>();

        StartCoroutine(Brain());
        StartCoroutine(Attacks());

        vida = atb.Vida;
    }