private void OnTriggerEnter2D(Collider2D collision) { IMob mob = collision.gameObject.GetComponent <IMob>(); if (mob != null) { _animator.ResetTrigger(_animEngonlir); _animator.SetTrigger(_animEngonlir); mob.Morrer(); AdicionaMobNoPorao(1); } }