private AkPositionArray BuildAkPositionArray() { AkPositionArray akPositionArray = new AkPositionArray((uint)this.multiPositionArray.Count); for (int i = 0; i < this.multiPositionArray.Count; i++) { akPositionArray.Add(base.transform.position + this.multiPositionArray[i], base.transform.forward); } return(akPositionArray); }
public AkPositionArray BuildMultiplePositions(List <SoundPoint> multiPositionList) { AkPositionArray positionArray = new AkPositionArray((uint)multiPositionList.Count); for (int i = 0; i < multiPositionList.Count; i++) { positionArray.Add(multiPositionList[i].gameObject.transform.position, multiPositionList[i].gameObject.transform.forward, multiPositionList[i].gameObject.transform.up); } return(positionArray); }
public AkPositionArray BuildMultiDirectionArray(ref AkMultiPosEvent eventPosList) { AkPositionArray akPositionArray = new AkPositionArray((uint)eventPosList.list.Count); for (int i = 0; i < eventPosList.list.Count; i++) { akPositionArray.Add(eventPosList.list[i].transform.position, eventPosList.list[i].transform.forward); } return(akPositionArray); }
AkPositionArray BuildAkPositionArray() { AkPositionArray positionArray = new AkPositionArray((uint)multiPositionArray.Count); for (int i = 0; i < multiPositionArray.Count; i++) { positionArray.Add(transform.position + multiPositionArray[i], transform.forward, transform.up); } return(positionArray); }
public AkPositionArray BuildMultiDirectionArray( ref AkMultiPosEvent eventPosList) { AkPositionArray positionArray = new AkPositionArray((uint)eventPosList.list.Count); for (int i = 0; i < eventPosList.list.Count; i++) { positionArray.Add (eventPosList.list [i].transform.position, eventPosList.list [i].transform.forward); } return positionArray; }
public AkPositionArray BuildMultiDirectionArray(AkMultiPosEvent eventPosList) { var positionArray = new AkPositionArray((uint)eventPosList.list.Count); for (var i = 0; i < eventPosList.list.Count; i++) { positionArray.Add(eventPosList.list[i].transform.position, eventPosList.list[i].transform.forward, eventPosList.list[i].transform.up); } return(positionArray); }
private AkPositionArray BuildAkPositionArray() { var validPositionList = new System.Collections.Generic.List <AkAmbientLargeModePositioner>(); for (int i = 0; i < LargeModePositions.Length; ++i) { if (LargeModePositions[i] != null) { if (!validPositionList.Contains(LargeModePositions[i])) { validPositionList.Add(LargeModePositions[i]); } } } var positionArray = new AkPositionArray((uint)validPositionList.Count); for (int i = 0; i < validPositionList.Count; ++i) { positionArray.Add(validPositionList[i].Position, validPositionList[i].Forward, validPositionList[i].Up); } return(positionArray); }
AkPositionArray BuildAkPositionArray() { AkPositionArray positionArray = new AkPositionArray((uint)multiPositionArray.Count); for (int i = 0; i < multiPositionArray.Count; i++) { positionArray.Add( transform.position + multiPositionArray[i], transform.forward); } return positionArray; }