Exemplo n.º 1
0
 // Start is called before the first frame update
 void Start()
 {
     mAnim    = GetComponent <Animator>();
     mRB2D    = GetComponent <Rigidbody2D>();
     mbGround = true;
     attackArea.SetTargetTag(TargetName);
     attackArea.SetDamage(AttackPower);
 }
Exemplo n.º 2
0
    // Start is called before the first frame update
    void Start()
    {
        mCurrentHP = MaxHP;
        HPbar.ShowGauge(mCurrentHP, MaxHP);

        mAnim    = GetComponent <Animator>();
        mRB2D    = GetComponent <Rigidbody2D>();
        mbGround = true;
        attackArea.SetTargetTag(TargetName);
        attackArea.SetDamage(AttackPower);
    }