using System.Collections; using System.Collections.Generic; using UnityEngine; public class LoadTest : MonoBehaviour { // Start is called before the first frame update void Start() { StartCoroutine(waitABload()); } IEnumerator waitABload() { yield return new WaitUntil(()=>AssetLoadHelper._Instance.isLoad); AssetLoadHelper._Instance.LoadAssets("model", "Static"); //AssetLoadHelper._Instance.LoadAssets("weathertool", "Effect Removal Zone"); //AssetLoadHelper._Instance.LoadAssets("weathertool", "Enviro 3"); //AssetLoadHelper._Instance.LoadAssets("weathertool", "WeatherUI"); //AssetLoadHelper._Instance.LoadAssets("weathertool", "WeatherZone"); //AssetLoadHelper._Instance.LoadAssets("terrain", "Terrain"); } }