캐릭터 데이터 필드 수정
This commit is contained in:
@@ -21,7 +21,6 @@ namespace TON
|
|||||||
if (players == null)
|
if (players == null)
|
||||||
{
|
{
|
||||||
players = new List<PlayerData>();
|
players = new List<PlayerData>();
|
||||||
Debug.LogError("⚠️ Player data loading failed. Check if 'Player.json' exists in Resources folder.");
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -7,12 +7,43 @@ namespace TON
|
|||||||
[System.Serializable]
|
[System.Serializable]
|
||||||
public class PlayerData
|
public class PlayerData
|
||||||
{
|
{
|
||||||
|
// 캐릭터 아이디
|
||||||
public int id;
|
public int id;
|
||||||
|
// 캐릭터 이미지 타입 (w/b)
|
||||||
public string type;
|
public string type;
|
||||||
|
// 캐릭터 이름
|
||||||
public string name;
|
public string name;
|
||||||
public float health;
|
// 캐릭터 레벨
|
||||||
public float score;
|
public int level;
|
||||||
public int chance;
|
// 캐릭터 경험치
|
||||||
|
public int experience;
|
||||||
|
// 캐릭터 체력
|
||||||
|
public int hp;
|
||||||
|
// 캐릭터 마나(스킬 포인트)
|
||||||
|
public int mp;
|
||||||
|
// 기본 공격력
|
||||||
|
public int attackPower;
|
||||||
|
// 기본 방어력
|
||||||
|
public int defensivePower;
|
||||||
|
// 캐릭터 이동 속도
|
||||||
|
public int speed;
|
||||||
|
// 캐릭터 크리티컬 수치
|
||||||
|
public int critical;
|
||||||
|
|
||||||
|
public PlayerData(int i, string t, string n)
|
||||||
|
{
|
||||||
|
id = i;
|
||||||
|
type = t == "BlackCat" ? "b" : "w";
|
||||||
|
name = n;
|
||||||
|
level = 1;
|
||||||
|
experience = 0;
|
||||||
|
hp = 100;
|
||||||
|
mp = 100;
|
||||||
|
attackPower = 50;
|
||||||
|
defensivePower = 30;
|
||||||
|
speed = 100;
|
||||||
|
critical = 30;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user