Skip to content
This repository was archived by the owner on Feb 22, 2023. It is now read-only.

Commit 58d62ec

Browse files
committed
처음 들어갔을 때 HP 바 연동
1 parent d5f1866 commit 58d62ec

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Unity/OneTwoShotgun/Assets/_Scripts/HanSocket/Data/User.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ namespace HanSocket.Data
77

88
public class User : MonoBehaviour
99
{
10+
const int MAXHP = 100;
11+
1012
public int id;
1113
public int hp;
1214
public string nickname;
@@ -29,7 +31,7 @@ public void Init(int id, int hp, string nickname, Vector2 pos)
2931
this.id = id;
3032
this.hp = hp;
3133

32-
this._hpBar.maxValue = hp;
34+
this._hpBar.maxValue = MAXHP;
3335
this._hpBar.value = hp;
3436

3537
this.nickname = nickname;

Unity/OneTwoShotgun/obj/Debug/project.razor.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"FilePath": "/home/han/Documents/OneTwoShotgun/Unity/OneTwoShotgun/Unity.Toolchain.Linux-x86_64.csproj",
2+
"FilePath": "/home/han/Documents/OneTwoShotgun/Unity/OneTwoShotgun/Unity.Mathematics.Editor.csproj",
33
"Configuration": {
44
"ConfigurationName": "UnsupportedRazor",
55
"LanguageVersion": "1.0",

0 commit comments

Comments
 (0)