using System; using System.Collections; using System.Collections.Generic; using System.IO; using UnityEngine; using UnityEngine.Networking; using UnityEngine.UI; using DG.Tweening; using UnityEngine.SceneManagement; using UnityEngine.EventSystems; using Assets.Scenes.Ride.Scripts; using Assets.Scripts.Apis.Models; using System.Linq; namespace Assets.Scripts.Scenes.VideoRide { public class VideoLoading : MonoBehaviour { Button download { get; set; } UnityWebRequest request { get; set; } VideoGameManager manager { get; set; } // Start is called before the first frame update protected Text mapName; protected RawImage mapRouteImage; protected CanvasGroup canvasGroup; protected Slider slider; protected Text processText; protected Text rideNowText; protected Button rideNow; protected Button cancel; protected Text mapDescText; protected Text distance; protected Text elevaction; protected Text slope; protected GameObject panel; protected GameObject loadingPanel { get; set; } protected Text level; protected Text rideNum; protected Text uploadByUserName; protected RawImage head; protected RawImage country; protected RawImage mapCountry; protected RawImage altitudeGraph; protected Transform mapRanking; protected Text mapId; protected float process = 0;//0-100 % public float targetAlpha = 0f; public float alphaSpeed = 2.0f; private bool depressFlag = false; private void Awake() { } void Start() { manager = FindObjectOfType(); var button = transform.Find("Panel/Button").GetComponent