private void DieAni() { m_Seebounds.extents = new Vector3(2.5f, 2.5f, 2.5f); transform.position = m_Bodybounds.center; actionType = ActionType.Idle; m_MonsterAbility.SetHp(m_MonsterAbility.m_AllHp); m_bDie = true; gameObject.SetActive(false); }
public override void ChildInit() { m_Bodybounds.center = m_Pivot.position; m_OriginMaterial = m_Skin.material; m_Seebounds.center = m_Pivot.position; m_Seebounds.extents = new Vector3(2.5f, 2.5f, 2.5f); m_MonsterAbility = GetComponent <MonsterAbility>(); m_MonsterAbility.Init(); m_MonsterAbility.SetHp(m_MonsterAbility.m_AllHp); }