mirror of
https://github.com/tym1116/BH3.git
synced 2025-12-16 16:34:41 +01:00
18 lines
288 B
C#
18 lines
288 B
C#
using UnityEngine;
|
|
|
|
public class AkAutoObject
|
|
{
|
|
public int m_id;
|
|
|
|
public AkAutoObject(GameObject GameObj)
|
|
{
|
|
m_id = GameObj.GetInstanceID();
|
|
AkSoundEngine.RegisterGameObj(GameObj, "AkAutoObject.cs", 1u);
|
|
}
|
|
|
|
~AkAutoObject()
|
|
{
|
|
AkSoundEngine.UnregisterGameObjInternal(m_id);
|
|
}
|
|
}
|