Esempio n. 1
0
        // 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>();
        }
Esempio n. 2
0
 public void OnDie(AttackTrigger trigger, Damageable damageable)
 {
     m_shadow.SetActive(false);
 }
Esempio n. 3
0
 public void TakeDamage(AttackTrigger trigger, Damageable damageable)
 {
     m_animator.SetBool("Hit", true);
 }