Beispiel #1
0
    public List <List <RoomData> > GetSpreadSheetData()
    {
        UnsafeSecurityPolicy.Instate();
        if (_RefreshToken == "" && _AccessToken == "")
        {
            Init();
            return(null);
        }

        Auth();

        SpreadsheetQuery query = new SpreadsheetQuery();

        // Make a request to the API and get all spreadsheets.
        SpreadsheetFeed feed = service.Query(query);

        if (feed.Entries.Count == 0)
        {
            Debug.Log("There are no spreadsheets in your docs.");
            return(null);
        }

        AccessSpreadsheet(GetSheetIdByDay(DateTime.Today.DayOfWeek), feed, listData);
        return(listData);
    }
Beispiel #2
0
    public void CheckUpdate()
    {
        UnsafeSecurityPolicy.Instate();
        string marketVersion = "";

        HtmlWeb      web = new HtmlWeb();
        HtmlDocument doc = web.Load(url);

        foreach (HtmlNode node in doc.DocumentNode.SelectNodes("//span[@class='htlgb']"))
        {
            marketVersion = node.InnerText.Trim();
            if (marketVersion != null)
            {
                if (System.Text.RegularExpressions.Regex.IsMatch(marketVersion, @"^\d{1}\.\d{1}\.\d{1}$"))
                //if (System.Text.RegularExpressions.Regex.IsMatch(marketVersion, @"^\d{1}\.\d{1}$"))
                {
                    string a = marketVersion.ToString();
                    MarketVersion.text = string.Format("최신 버전 : {0}", marketVersion.ToString());
                    string b = Application.version.ToString();
                    AppVersion.text = string.Format("현재 버전 : {0}", Application.version.ToString());

                    if (a != b)
                    {
                        UpdateWindow.gameObject.SetActive(true);
                    }
                }
            }
        }
    }
Beispiel #3
0
 void Init()
 {
     if (isInit)
     {
         return;
     }
     isInit = true;
     UnsafeSecurityPolicy.Instate();
 }
Beispiel #4
0
 /// <summary>
 /// «агрузка ¤дра и инициализаци¤ компонентов
 /// </summary>
 private void Awake()
 {
     UnsafeSecurityPolicy.Instate();
     OnAllReady();
 }
    public void OnEnable()
    {
        setting = target as GoogleDataSettings;

        UnsafeSecurityPolicy.Instate();
    }