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