本文整理匯總了C#中AkActionOnEventType類的典型用法代碼示例。如果您正苦於以下問題:C# AkActionOnEventType類的具體用法?C# AkActionOnEventType怎麽用?C# AkActionOnEventType使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
AkActionOnEventType類屬於命名空間,在下文中一共展示了AkActionOnEventType類的6個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: ExecuteActionOnEvent
public static AKRESULT ExecuteActionOnEvent(string in_pszEventName, AkActionOnEventType in_ActionType) {
AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_9(in_pszEventName, (int)in_ActionType);
return ret;
}
示例2: ExecuteActionOnEvent
public static AKRESULT ExecuteActionOnEvent(string in_pszEventName, AkActionOnEventType in_ActionType, UnityEngine.GameObject in_gameObjectID) {
uint tempin_gameObjectID;
if ( in_gameObjectID != null )
{
tempin_gameObjectID = (uint)in_gameObjectID.GetInstanceID();
// Note: if AkGameObjectTracker is already attached, the following code will be bypassed.
if (in_gameObjectID.GetComponent<AkGameObject>() == null)
{
in_gameObjectID.AddComponent<AkGameObject>();
}
}
else
{
tempin_gameObjectID = unchecked((uint)-1);
}
{
AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_8(in_pszEventName, (int)in_ActionType, tempin_gameObjectID);
return ret;
}
}
示例3: ExecuteActionOnEvent
public static AKRESULT ExecuteActionOnEvent(string in_pszEventName, AkActionOnEventType in_ActionType, UnityEngine.GameObject in_gameObjectID)
{
AkAutoObject tempObj = null;
uint tempin_gameObjectID = (uint)AutoRegisterAkGameObj(in_gameObjectID, ref tempObj);
{
AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_8(in_pszEventName, (int)in_ActionType, tempin_gameObjectID);
return ret;
}
}
示例4: ExecuteActionOnEvent
public static AKRESULT ExecuteActionOnEvent(string in_pszEventName, AkActionOnEventType in_ActionType, UnityEngine.GameObject in_gameObjectID, int in_uTransitionDuration, AkCurveInterpolation in_eFadeCurve)
{
AkAutoObject tempObj = null;
uint tempin_gameObjectID;
if ( in_gameObjectID != null )
{
tempin_gameObjectID = (uint)in_gameObjectID.GetInstanceID();
if (in_gameObjectID.activeInHierarchy)
{
if (in_gameObjectID.GetComponent<AkGameObj>() == null)
{
in_gameObjectID.AddComponent<AkGameObj>();
}
}
else
{
//Object not active. AkGameObj will not work. Use a temporary game object.
//This will automatically unregister at the end of this scope.
tempObj = new AkAutoObject(in_gameObjectID);
tempin_gameObjectID = (uint)tempObj.m_id; //Silence warning
}
}
else
{
tempin_gameObjectID = unchecked((uint)-1);
}
{
AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_6(in_pszEventName, (int)in_ActionType, tempin_gameObjectID, in_uTransitionDuration, (int)in_eFadeCurve);
return ret;
}
}
示例5: ExecuteActionOnEvent
public static AKRESULT ExecuteActionOnEvent(string in_pszEventName, AkActionOnEventType in_ActionType, ComponentBind.Entity in_gameObjectID, int in_uTransitionDuration)
{
uint tempin_gameObjectID;
if ( in_gameObjectID != null )
{
tempin_gameObjectID = getGameObjectID(in_gameObjectID);
// Note: if AkGameObjectTracker is already attached, the following code will be bypassed.
if (in_gameObjectID.Get<AkGameObject>() == null)
{
in_gameObjectID.Add(new AkGameObject());
}
}
else
{
tempin_gameObjectID = unchecked((uint)-1);
}
{
AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_7(in_pszEventName, (int)in_ActionType, tempin_gameObjectID, in_uTransitionDuration);
return ret;
}
}
示例6: ExecuteActionOnEvent
public static AKRESULT ExecuteActionOnEvent(uint in_eventID, AkActionOnEventType in_ActionType, ComponentBind.Entity in_gameObjectID, int in_uTransitionDuration, AkCurveInterpolation in_eFadeCurve, uint in_PlayingID) {
uint tempin_gameObjectID;
if ( in_gameObjectID != null )
{
tempin_gameObjectID = (uint)in_gameObjectID.ID.GetHashCode();
// Note: if AkGameObjectTracker is already attached, the following code will be bypassed.
if (in_gameObjectID.Get<AkGameObject>() == null)
{
in_gameObjectID.Add(new AkGameObject());
}
}
else
{
tempin_gameObjectID = unchecked((uint)-1);
}
{
AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_ExecuteActionOnEvent__SWIG_0(in_eventID, (int)in_ActionType, tempin_gameObjectID, in_uTransitionDuration, (int)in_eFadeCurve, in_PlayingID);
return ret;
}
}