Nie możesz wybrać więcej, niż 25 tematów Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
 
 
 
 

21 wiersze
533 B

  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class UniWebViewSafeBrowingComponent : MonoBehaviour
  5. {
  6. [SerializeField]
  7. #pragma warning disable 0649
  8. private string url;
  9. void Start()
  10. {
  11. if (string.IsNullOrEmpty(url)) {
  12. Debug.LogError("The `url` is empty or null. Set a valid url in the prefab before you initialize it.");
  13. return;
  14. }
  15. var safeBrowsing = UniWebViewSafeBrowsing.Create(url);
  16. safeBrowsing.Show();
  17. }
  18. }