BasicFantasy/Assets/Scripts/Data/CharacterInfo.cs
2023-09-28 18:21:45 +09:00

27 lines
595 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class CharacterInfo
{
public string Name { get; private set; }
public E_TEAM Team { get; private set; }
public int MoveRange { get; private set; }
public int CurrentX { get; private set; }
public int CurrentY { get; private set; }
public CharacterInfo(string name, E_TEAM team, int moveRange)
{
Name = name;
Team = team;
MoveRange = moveRange;
}
public void UpdatePosition(int x, int y)
{
CurrentX = x;
CurrentY = y;
}
}