Working generic object pooling, pool monitor editor tool and batch component adder editor tool

This commit is contained in:
Michal Pikulski
2025-09-16 15:02:50 +02:00
parent bcc6f05058
commit 75be338065
26 changed files with 1393 additions and 469 deletions

19
Assets/Scripts/Tile.cs Normal file
View File

@@ -0,0 +1,19 @@
using UnityEngine;
/// <summary>
/// A simple marker component to identify game objects as tiles.
/// This allows the pool system to specifically track and manage tile objects.
/// </summary>
public class Tile : MonoBehaviour
{
// This is primarily a marker component, but we could add tile-specific properties here if needed
// Optional: Add properties that might be useful for all tiles
[SerializeField] private int tileIndex;
public int TileIndex
{
get => tileIndex;
set => tileIndex = value;
}
}