Working generic object pooling, pool monitor editor tool and batch component adder editor tool
This commit is contained in:
19
Assets/Scripts/Tile.cs
Normal file
19
Assets/Scripts/Tile.cs
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user