SceneObjectConfig.cs 519 B

123456789101112131415161718192021
  1. using Fort23.Core;
  2. using Fort23.UTool;
  3. using UnityEngine;
  4. namespace GameLogic.Combat.CombatTool.SceneTool
  5. {
  6. [System.Serializable]
  7. public class SceneObjectConfig
  8. {
  9. public int odds;
  10. public float minY;
  11. public float maxY;
  12. public GameObject prefab;
  13. public async CTask<GameObjectPool> GetNewPrefab()
  14. {
  15. GameObjectPool gameObjectPool = GObjectPool.Instance.Fetch<GameObjectPool>(prefab.name, prefab);
  16. return gameObjectPool;
  17. }
  18. }
  19. }