예제 #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;
				}
			}
		}
예제 #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);
			}
		}
예제 #3
0
		void Awake ()
		{
			_hiscoreSystem = GameObject.FindObjectOfType<LeaderBoardManager>();
		}
예제 #4
0
		void Start ()
		{
			lbm = GameObject.FindObjectOfType<LeaderBoardManager>();
			lbm.Uploaded = false;
		}