Skip to content

using UnityEngine; #775

@amali781

Description

@amali781

🚫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

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions