GameObjectEntity.cs 452 B

12345678910111213141516171819
  1. #if !COMBAT_SERVER
  2. using System;
  3. using Fort23.UTool;
  4. using UnityEngine;
  5. namespace CombatLibrary.CombatLibrary.CombatCore.Utility
  6. {
  7. public class GameObjectEntity : MonoBehaviour
  8. {
  9. public IGObjectPoolInterface IgObjectPoolInterface;
  10. public System.Action<IGObjectPoolInterface> OnDestroyCallBack;
  11. private void OnDestroy()
  12. {
  13. OnDestroyCallBack?.Invoke(IgObjectPoolInterface);
  14. }
  15. }
  16. }
  17. #endif