#if !COMBAT_SERVER
using System;
using Fort23.UTool;
using UnityEngine;

namespace CombatLibrary.CombatLibrary.CombatCore.Utility
{
    public class GameObjectEntity : MonoBehaviour
    {
        public IGObjectPoolInterface IgObjectPoolInterface;
        public System.Action<IGObjectPoolInterface> OnDestroyCallBack;

        private void OnDestroy()
        {
            OnDestroyCallBack?.Invoke(IgObjectPoolInterface);
        }
    }
}
#endif