public bool isPaused() { #if BROADCAST_USE_EVERYPLAY return(Everyplay.IsPaused()); #else return(false); #endif }
/// <summary> /// Stops the recording of gameplay videos, if running or paused. /// </summary> public static void StopRecord() { #if UNITY_EVERYPLAY if (Everyplay.IsRecording() || Everyplay.IsPaused()) { Everyplay.StopRecording(); } #endif }
/// <summary> /// Resumes the recording of gameplay videos, if paused. /// </summary> public static void ResumeRecord() { #if UNITY_EVERYPLAY if (Everyplay.IsPaused()) { Everyplay.ResumeRecording(); } #endif }
void Update() { if (takeRandomShots && Everyplay.IsRecording() && !Everyplay.IsPaused()) { if (Time.time > nextRandomShotTime) { Everyplay.TakeThumbnail(); nextRandomShotTime = Time.time + Random.Range(3.0f, 15.0f); } } }
public bool ResumeRecord() { bool result = false; if (isEnable && Everyplay.IsPaused()) { Everyplay.ResumeRecording(); result = true; } return(result); }
public bool StopRecord() { bool result = false; if (isEnable && (Everyplay.IsRecording() || Everyplay.IsPaused())) { Everyplay.StopRecording(); result = true; } return(result); }
public bool IsPaused() { return(Everyplay.IsPaused()); }