void Update () { if (lbm == null) { lbm = GameObject.FindObjectOfType<LeaderBoardManager>(); } if (IsRetryPending && Time.time - _retryStartedTime < 10f) { if (lbm.IsConnected) { lbm.AddScore(_score); IsRetryPending = false; Uploaded = true; } } }
void Awake() { #if UNITY_EDITOR _platformUsername = "******"; _platformID = "104348353692656845851"; #endif ActivateSocial(); if (Application.platform == RuntimePlatform.WindowsEditor) Download(); if (_instance != null) { Destroy(gameObject); } else { _instance = this; GameObject.DontDestroyOnLoad(gameObject); } }
void Awake () { _hiscoreSystem = GameObject.FindObjectOfType<LeaderBoardManager>(); }
void Start () { lbm = GameObject.FindObjectOfType<LeaderBoardManager>(); lbm.Uploaded = false; }