Ejemplo n.º 1
0
		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;
				}
			}
		}
Ejemplo n.º 2
0
		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);
			}
		}
Ejemplo n.º 3
0
		void Awake ()
		{
			_hiscoreSystem = GameObject.FindObjectOfType<LeaderBoardManager>();
		}
Ejemplo n.º 4
0
		void Start ()
		{
			lbm = GameObject.FindObjectOfType<LeaderBoardManager>();
			lbm.Uploaded = false;
		}