-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Closed as not planned
Description
🚫using UnityEngine;
public enum }
public enum PieceColor { White, Black }
public class Piece : MonoBehaviour
{
public PieceType pieceType;
public PieceColor color;
public int boardX, boardZ;
// Battle stats (simple)
public int maxHP = 10;
public int currentHP;
public int attack = 5;
public int defense = 2;
{
pieceType = type;
color = Black
boardX = x; boardZ = z;
currentHP = maxHP;
}
{
boardX = x; boardZ = z;
transform.ion = worldPos + Vector3.up * 0.5f;
}
}
Originally posted by @m5cn6jb7th-cyber in #774 (comment)
Copyrights©®
Metadata
Metadata
Assignees
Labels
No labels