private IEnumerator waitForService()
 {
     while (!Service.IsSet<SafeAreaService>())
     {
         yield return null;
     }
     safeAreaService = Service.Get<SafeAreaService>();
     base.enabled = true;
 }
 private void Awake()
 {
     if (Service.IsSet<SafeAreaService>())
     {
         safeAreaService = Service.Get<SafeAreaService>();
         return;
     }
     base.enabled = false;
     StartCoroutine(waitForService());
 }