rabidus-test/Assets/Scripts/LeaderboardWithDateControll...

38 lines
1003 B
C#
Raw Normal View History

2023-10-05 17:56:59 +03:00
using System;
using System.Collections;
using System.Collections.Generic;
using System.Linq;
using UnityEngine;
2023-10-05 17:56:59 +03:00
public class LeaderboardWithDateController : MonoBehaviour
2023-10-05 17:56:59 +03:00
{
//public int DaysShow = 30;
2023-10-05 17:56:59 +03:00
//protected override void Start()
//{
// base.Start();
//}
2023-10-05 17:56:59 +03:00
//protected override void UpdateLeaderboard()
//{
// //_entries.ForEach(x => Destroy(x.gameObject));
// //_entries.Clear();
// //_entries = new List<LeaderboardEntry>();
2023-10-05 17:56:59 +03:00
// //var sortedList = PlayerSetup.Instance.AllPlayers
// // .Where(y => DateTime.Parse(y.DateTime)
// // .AddDays(DaysShow) >= DateTime.Now)
// // .OrderByDescending(x => x.Score)
// // .ToList();
2023-10-06 16:12:39 +03:00
2023-10-05 17:56:59 +03:00
// //for (int i = 0; i < sortedList.Count; i++)
// //{
// // var newEntry = Instantiate(_leaderboardEntryPrefab, _content);
// // _entries.Add(newEntry);
// // newEntry.Init(sortedList[i], i);
// //}
//}
2023-10-05 17:56:59 +03:00
}