LoadTest.cs 891 B

1234567891011121314151617181920212223242526
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. public class LoadTest : MonoBehaviour
  5. {
  6. // Start is called before the first frame update
  7. void Start()
  8. {
  9. StartCoroutine(waitABload());
  10. }
  11. IEnumerator waitABload()
  12. {
  13. yield return new WaitUntil(()=>AssetLoadHelper._Instance.isLoad);
  14. AssetLoadHelper._Instance.LoadAssets<GameObject>("model", "Static");
  15. //AssetLoadHelper._Instance.LoadAssets<GameObject>("weathertool", "Effect Removal Zone");
  16. //AssetLoadHelper._Instance.LoadAssets<GameObject>("weathertool", "Enviro 3");
  17. //AssetLoadHelper._Instance.LoadAssets<GameObject>("weathertool", "WeatherUI");
  18. //AssetLoadHelper._Instance.LoadAssets<GameObject>("weathertool", "WeatherZone");
  19. //AssetLoadHelper._Instance.LoadAssets<GameObject>("terrain", "Terrain");
  20. }
  21. }