TimerAdVideo.cs 756 B

1234567891011121314151617181920212223242526272829303132333435363738
  1. using System.Collections.Generic;
  2. using JsonFx.Json;
  3. using UnityEngine;
  4. using System.Collections;
  5. using TMPro;
  6. //using System.IO;
  7. public class TimerAdVideo : MonoBehaviour {
  8. public float Timer = 6;
  9. public TextMeshProUGUI timer;
  10. public TextMeshProUGUI text;
  11. public TextMeshProUGUI textFact;
  12. public Camera CameraVideo;
  13. private const string URL = GameConstants.SERVER_BASE_URL + "Video/";
  14. void Start()
  15. {
  16. timer.text = "";
  17. text.text = "Skip video after 15 sec";
  18. }
  19. void OnEnable()
  20. {
  21. //LoadQuestions();
  22. //StartCoroutine(DownloadAndPlayVideo());
  23. //Timer = MediaPlayerCtrl.CurVideo.TimeSec;
  24. }
  25. void Update()
  26. {
  27. /*Timer = Timer - Time.deltaTime;
  28. if (Timer <= 0)
  29. {
  30. MenuManager._instance.OnLeavingViewingVideoAd();
  31. }*/
  32. }
  33. }