UnityEngine.AudioSource.SetScheduledEndTime C# (CSharp) Method

SetScheduledEndTime() private method

private SetScheduledEndTime ( double time ) : void
time double
return void
        public extern void SetScheduledEndTime(double time);
        /// <summary>

Usage Example

コード例 #1
0
	void SetupLoop() {
		sourceTwo = gameObject.AddComponent<AudioSource> ();
		sourceTwo.playOnAwake = false;
		sourceTwo.clip = songClip;
		sourceTwo.timeSamples = introEndInSamples;
		sourceTwo.PlayScheduled (introEndTime);
		sourceTwo.SetScheduledEndTime (nextLoopSwap);
		InvokeRepeating ("SwapLoop", (float) ((introEndInSamples * oneSampleInSeconds) + 1.0f), (float) loopTime);
	}
All Usage Examples Of UnityEngine.AudioSource::SetScheduledEndTime