// Use this for initialization public virtual void Awake() { GameManager gameMgr = GameManager.Instance; m_inputMgr = gameMgr.GetInstanceOf <InputManager>(); m_playerMgr = GameObject.FindObjectOfType <PlayerManager>(); m_animator = GetComponentInChildren <Animator>(); m_movement = GetComponent <Movement>(); m_fighting = GetComponent <PlayerFighting>(); m_flaskInventory = GetComponent <FlaskInventory>(); m_damageable = GetComponentInChildren <Damageable>(); m_recoveryLife = m_damageable.Life; m_sounds = GetComponentInChildren <PlayerSounds>(); }
public void OnDie(AttackTrigger trigger, Damageable damageable) { m_shadow.SetActive(false); }
public void TakeDamage(AttackTrigger trigger, Damageable damageable) { m_animator.SetBool("Hit", true); }