using UnityEngine; using System.Collections.Generic; [System.Serializable] public class PlayerPlacementData { public PlayerPawn pawn; } [System.Serializable] public class PlayerTileData { public int playerCount; public Transform commonPlacementTransform; public Dictionary playerPawns; } public class Tile : MonoBehaviour { [SerializeField] protected bool isSafeZone = false; public bool IsSafeZone => isSafeZone; public Vector3 CenterPlacementPosition => new Vector3(transform.position.x, 1f, transform.position.z); protected int lastOccupiedIndex = 0; public PlayerPawn PlayerPawn // Change implementation { get; private set; } public virtual void InitPlayerPawn(PlayerPawn playerPawn, PlayerType playerType) { PlayerPawn = playerPawn; } public void ResetPlayerPawn() { PlayerPawn = null; } }