protected override void Awake() { var collider = GetComponent <UnityEngine.BoxCollider>(); collider.isTrigger = true; portalTransform = new AkTransform(); portalTransform.Set(collider.bounds.center.x, collider.bounds.center.y, collider.bounds.center.z, transform.forward.x, transform.forward.y, transform.forward.z, transform.up.x, transform.up.y, transform.up.z); extent = new AkVector(); extent.X = collider.size.x * transform.localScale.x / 2; extent.Y = collider.size.y * transform.localScale.y / 2; extent.Z = collider.size.z * transform.localScale.z / 2; RegisterTriggers(closePortalTriggerList, ClosePortal); AkRoomPortalManager.RegisterPortal(this); base.Awake(); //Call the ClosePortal function if registered to the Awake Trigger if (closePortalTriggerList.Contains(AWAKE_TRIGGER_ID)) { ClosePortal(null); } }
protected override void Awake() { portalCollider = GetComponent <UnityEngine.BoxCollider>(); portalCollider.isTrigger = true; portalTransform = new AkTransform(); // set portal in it's initial state portalActive = initialState != State.Closed; RegisterTriggers(closePortalTriggerList, ClosePortal); base.Awake(); }
protected override void Awake() { portalCollider = GetComponent <UnityEngine.BoxCollider>(); portalCollider.isTrigger = true; portalTransform = new AkTransform(); // set portal in it's initial state portalActive = initialState != State.Closed; RegisterTriggers(closePortalTriggerList, ClosePortal); base.Awake(); //Call the ClosePortal function if registered to the Awake Trigger if (closePortalTriggerList.Contains(AWAKE_TRIGGER_ID)) { ClosePortal(null); } }
internal static IntPtr getCPtr(AkTransform obj) { return (obj == null) ? IntPtr.Zero : obj.swigCPtr; }
public static AKRESULT GetPosition(UnityEngine.GameObject in_GameObjectID, AkTransform out_rPosition) { AkAutoObject tempObj = null; uint tempin_GameObjectID = (uint)AutoRegisterAkGameObj(in_GameObjectID, ref tempObj); { AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetPosition(tempin_GameObjectID, AkTransform.getCPtr(out_rPosition)); return ret; } }
public static AKRESULT GetListenerPosition(uint in_uIndex, AkTransform out_rPosition) { AKRESULT ret = (AKRESULT)AkSoundEnginePINVOKE.CSharp_GetListenerPosition(in_uIndex, AkTransform.getCPtr(out_rPosition)); return ret; }
internal static global::System.IntPtr getCPtr(AkTransform obj) { return((obj == null) ? global::System.IntPtr.Zero : obj.swigCPtr); }
internal static IntPtr getCPtr(AkTransform obj) { return((obj == null) ? IntPtr.Zero : obj.swigCPtr); }