public void Hit(float value) { status.Hp -= value; Debug.Log("Enemy Hit " + value.ToString()); if (!Ani.GetBool(AnimationHashList.IsDeadHash)) { HpBar bar = HpBarPool.GetInstacne.GetFromPool(); bar.transform.position = hpBarPos.position; bar.ShowHp(status.Hp / status.MaxHp); if (status.Hp <= 0) { //dead bar.ShowIncom(incomeAmount); eTypeMotion = eEnermyState.Dead; Ani.SetBool(AnimationHashList.IsDeadHash, true); GameController.GetInstance.AddMoney(incomeAmount); } } }