// Start is called before the first frame update void Start() { mAnim = GetComponent <Animator>(); mRB2D = GetComponent <Rigidbody2D>(); mbGround = true; attackArea.SetTargetTag(TargetName); attackArea.SetDamage(AttackPower); }
// 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); }