Created wwise project Integrated inventory UI sounds Improved projectile weapon behavior (randomized start position, stopped them from self-destructing at target range when airburst is disabled)
14 lines
450 B
C#
14 lines
450 B
C#
public partial class AkSoundEngine
|
|
{
|
|
#if UNITY_EDITOR_WIN || (UNITY_STANDALONE_WIN && !UNITY_EDITOR) || UNITY_WSA
|
|
/// <summary>
|
|
/// Converts "AkOSChar*" C-strings to C# strings.
|
|
/// </summary>
|
|
/// <param name="ptr">"AkOSChar*" memory pointer passed to C# as an IntPtr.</param>
|
|
/// <returns>Converted string.</returns>
|
|
public static string StringFromIntPtrOSString(System.IntPtr ptr)
|
|
{
|
|
return StringFromIntPtrWString(ptr);
|
|
}
|
|
#endif
|
|
}
|