using UnityEngine;

namespace ObjectsPool
{
    public class PoolObject: MonoBehaviour
    {
        protected GameObjectPool Pool;
        protected GameObjectPool EffectPool;
        public virtual void SetObject(Vector2 spawnPosition, GameObjectPool gameObjectPool)
        {
            transform.position = spawnPosition;
            Pool = gameObjectPool;
        }
        
        public virtual void SetObject(Vector2 spawnPosition, GameObjectPool gameObjectPool, GameObjectPool effectPool)
        {
            
            transform.position = spawnPosition;
            Pool = gameObjectPool;
            EffectPool = effectPool;
        }
    }
}