public IEnumerator initialization() { if (instance == null) { instance = this; } yield return(StartCoroutine(LoadSeq("jpg", "/UITextures/ScreenProtect/", ScreenProtectImages))); }
IEnumerator initialization() { readJson = FindObjectOfType <ReadJson>(); importAsserts = FindObjectOfType <ImportAsserts>(); screenPortectGenerator = FindObjectOfType <ScreenPortectGenerator>(); //ini // yield return StartCoroutine(readJson.initialization()); yield return(StartCoroutine(importAsserts.initialization())); screenPortectGenerator.initialization(); }