1234567891011121314151617181920212223242526272829303132333435363738 |
- using System.Collections.Generic;
- using JsonFx.Json;
- using UnityEngine;
- using System.Collections;
- using TMPro;
- //using System.IO;
- public class TimerAdVideo : MonoBehaviour {
- public float Timer = 6;
- public TextMeshProUGUI timer;
- public TextMeshProUGUI text;
- public TextMeshProUGUI textFact;
- public Camera CameraVideo;
- private const string URL = GameConstants.SERVER_BASE_URL + "Video/";
- void Start()
- {
-
- timer.text = "";
- text.text = "Skip video after 15 sec";
- }
-
- void OnEnable()
- {
- //LoadQuestions();
- //StartCoroutine(DownloadAndPlayVideo());
- //Timer = MediaPlayerCtrl.CurVideo.TimeSec;
- }
- void Update()
- {
- /*Timer = Timer - Time.deltaTime;
- if (Timer <= 0)
- {
- MenuManager._instance.OnLeavingViewingVideoAd();
- }*/
- }
- }
|