Ludo-3D/Assets/Scripts/Gameplay/Player/PlayerGameData.cs

38 lines
687 B
C#
Raw Normal View History

2026-01-30 21:51:33 +05:30
using System.Collections.Generic;
using UnityEngine;
public enum PlayerType
{
Player1 = 0,
Player2 = 1,
Player3 = 2,
Player4 = 3
}
2026-02-06 19:26:29 +05:30
public enum PlayerColorType
{
Red = 0,
Blue = 1,
Grey = 2,
Green = 3
}
2026-01-30 21:51:33 +05:30
[System.Serializable]
public class PlayerGameData
{
public PlayerType playerType;
public int startIndex;
public int endIndex;
public Transform playersParent;
public Dictionary<int, PlayerPawn> playerPawnsDict;
public int totalPawnsInHome = 0;
public int totalPawnsFinished = 0;
}
[System.Serializable]
public class PlayerData
{
public PlayerType playerType;
public string playerName;
public int ranking = 0;
}