示例#1
0
    /// <summary>
    /// 加载组合
    /// </summary>
    /// <param name="ComboId">组合ID</param>
    /// <param name="todoPrepareEvent">是否对于标注可执行Prepare 的去 执行 PrepareEvent</param>
    public static void LoadSoundCombo(int ComboId, bool todoPrepareEvent = false)
    {
        MsgLoadSoundCombo parame = new MsgLoadSoundCombo();

        parame.SoundComboId     = ComboId;
        parame.todoPrepareEvent = todoPrepareEvent;
        GameFacade.Instance.SendNotification(NotificationName.MSG_SOUND_LOAD_COMBO, parame);
    }
示例#2
0
    public override void Execute(INotification notification)
    {
        MsgLoadSoundCombo parame = notification.Body as MsgLoadSoundCombo;

        if (parame != null)
        {
            WwiseManager.LoadMusicCombo(parame.SoundComboId, parame.todoPrepareEvent);
        }
    }