Audio Channel Events

Inherit from EasyManager.cs

using EasyCodeForVivox;

public class VivoxManager : EasyManager
{

}

Inject EasyEvents

using EasyCodeForVivox.Events;
using UnityEngine;
using Zenject;

public class VivoxEvents : MonoBehaviour
{
    EasyEvents _events;

    [Inject]
    private void Initialize(EasyEvents events)
    {
        _events = events;
    }
}

Dynamic Events

Make sure Dynamic Events are enabled

How to Subscribe to Audio Channel Events in EasyCode

EasyManager

circle-info

Keeping the base methods are not necessary. They are simply Debug.Logs(). Feel free to delete them

EasyEvents

Dynamic Events

Make sure the parameter in your method matches the event type. See what parameter is required for each AudioChannel Event here. Dynamic events will dynamically invoke your method at runtime on every game object that has a dynamic event attribute. Because of this there is no need to Subscribe/Unsubscribe from events with the usual +=/-=

Dynamic Async Events

Make sure the parameter in your method matches the event type. See what parameter is required for each AudioChannel Event here. Dynamic events will dynamically invoke your method at runtime on every game object that has a dynamic event attribute. Because of this there is no need to Subscribe/Unsubscribe from events with the usual +=/-=

circle-info

Remember to use async void or async Task or else the event may run synchronously

circle-exclamation

Last updated