Exemplo n.º 1
0
    public override void OnRemoveEntity()
    {
        if (m_HeroType == KHeroType.htPlayer)
        {
            Interaction.InteractionManager.GetInstance().UnregisterOwnerPlayer(this);
        }
        else
        {
            Interaction.InteractionManager.GetInstance().UnregisterInteractable(this);
        }

        //卸载音效组合
        if (m_HeroType == KHeroType.htPlayer && m_Player.HasValue)
        {
            WwiseUtil.UnLoadSoundCombo(m_Player.Value.MusicComboID);
        }
        base.OnRemoveEntity();
    }