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)
18 lines
No EOL
859 B
C#
18 lines
No EOL
859 B
C#
#if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms.
|
|
//////////////////////////////////////////////////////////////////////
|
|
//
|
|
// Copyright (c) 2014 Audiokinetic Inc. / All Rights Reserved
|
|
//
|
|
//////////////////////////////////////////////////////////////////////
|
|
public class AkTriggerEnter : AkTriggerBase
|
|
{
|
|
public UnityEngine.GameObject triggerObject = null;
|
|
|
|
private void OnTriggerEnter(UnityEngine.Collider in_other)
|
|
{
|
|
if (triggerDelegate != null && (triggerObject == null || triggerObject == in_other.gameObject))
|
|
triggerDelegate(in_other.gameObject);
|
|
}
|
|
}
|
|
|
|
#endif // #if ! (UNITY_DASHBOARD_WIDGET || UNITY_WEBPLAYER || UNITY_WII || UNITY_WIIU || UNITY_NACL || UNITY_FLASH || UNITY_BLACKBERRY) // Disable under unsupported platforms. |