Добавил инициализацию лидербордов при зажатии на курки

This commit is contained in:
r.nikolin 2023-11-07 11:48:48 +03:00
parent f4be6ad41d
commit d31d7ed713
3 changed files with 225 additions and 387 deletions

File diff suppressed because one or more lines are too long

View File

@ -37,6 +37,11 @@ public class LeaderboardController : MonoBehaviour
private void Start() private void Start()
{ {
//yield return new WaitForSeconds(1); //yield return new WaitForSeconds(1);
InitLeaderboards();
}
public void InitLeaderboards()
{
InitDailyLeaderboard(); InitDailyLeaderboard();
InitGlobalLeaderboard(); InitGlobalLeaderboard();
} }

View File

@ -8,4 +8,9 @@ public class StartSceneManager : MonoBehaviour
{ {
LeaderboardController.Instance.RefreshEntries(); LeaderboardController.Instance.RefreshEntries();
} }
public void InitLeaderboards()
{
LeaderboardController.Instance.InitLeaderboards();
}
} }