public static uint PostEvent(string in_pszEventName, GameObject in_gameObjectID, uint in_uFlags) { WWiseAudioBridge.Logger.Debug($"in_pszEventName = '{in_pszEventName}' in_gameObjectID = {in_gameObjectID}, in_uFlags = {in_uFlags}"); WWiseAudioBridge.Logger.Debug($"String key, patched"); var name = WWiseAudioBridge.PostEventOrReturnWWiseEventName((ID)in_pszEventName.ToLowerInvariant(), in_gameObjectID); if (name == null) { return(0); } return(orig_PostEvent(in_pszEventName, in_gameObjectID, in_uFlags)); }
public static uint PostEvent(string in_pszEventName, GameObject in_gameObjectID, uint in_uFlags, AkCallbackManager.EventCallback in_pfnCallback, object in_pCookie, uint in_cExternals) { WWiseAudioBridge.Logger.Debug($"in_pszEventName = '{in_pszEventName}' in_gameObjectID = {in_gameObjectID}, in_uFlags = {in_uFlags}, in_pfnCallback = {in_pfnCallback}, in_pCookie = {in_pCookie}, in_cExternals = {in_cExternals}"); WWiseAudioBridge.Logger.Debug($"String key, patched"); var name = WWiseAudioBridge.PostEventOrReturnWWiseEventName((ID)in_pszEventName.ToLowerInvariant(), in_gameObjectID); if (name == null) { return(0); } return(orig_PostEvent(in_pszEventName, in_gameObjectID, in_uFlags, in_pfnCallback, in_pCookie, in_cExternals)); }