RegisterBundlesManager.cs 508 B

1234567891011121314151617181920212223242526
  1. using System;
  2. using UnityEngine;
  3. namespace I2.Loc
  4. {
  5. public class RegisterBundlesManager : MonoBehaviour, IResourceManager_Bundles
  6. {
  7. public void OnEnable()
  8. {
  9. if (!ResourceManager.pInstance.mBundleManagers.Contains(this))
  10. {
  11. ResourceManager.pInstance.mBundleManagers.Add(this);
  12. }
  13. }
  14. public void OnDisable()
  15. {
  16. ResourceManager.pInstance.mBundleManagers.Remove(this);
  17. }
  18. public virtual UnityEngine.Object LoadFromBundle(string path, Type assetType)
  19. {
  20. return null;
  21. }
  22. }
  23. }