|
@@ -42,12 +42,17 @@ public class RemoteVideoControl : MonoBehaviour
|
|
|
}
|
|
|
}
|
|
|
|
|
|
+ private void OnEnable()
|
|
|
+ {
|
|
|
+ StartCoroutine(VideoTimer());
|
|
|
+ }
|
|
|
+
|
|
|
private void Start()
|
|
|
{
|
|
|
IsStart = true;
|
|
|
slider.onValueChanged.AddListener(delegate { ChangeVideo(slider.value); });
|
|
|
|
|
|
- StartCoroutine(VideoTimer());
|
|
|
+
|
|
|
}
|
|
|
|
|
|
public void ChangeVideo(float value)
|