Genesis Game Client Project Setup
This commit is contained in:
18
Assets/02_Scripts/Player/Status/PlayerHealth.cs
Normal file
18
Assets/02_Scripts/Player/Status/PlayerHealth.cs
Normal file
@@ -0,0 +1,18 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class PlayerHealth : Health
|
||||
{
|
||||
private PlayerStat _pstat;
|
||||
public int currentHp;
|
||||
|
||||
void Start()
|
||||
{
|
||||
_pstat = GetComponent<PlayerStat>();
|
||||
//currentHp = _pstat.MaxHp; // 스태틱 데이터를 가져와 초기화
|
||||
}
|
||||
|
||||
public void TakeDamage(int damage)
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
2
Assets/02_Scripts/Player/Status/PlayerHealth.cs.meta
Normal file
2
Assets/02_Scripts/Player/Status/PlayerHealth.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: ab0e8069f023be141afde6c2897d148e
|
||||
10
Assets/02_Scripts/Player/Status/PlayerStat.cs
Normal file
10
Assets/02_Scripts/Player/Status/PlayerStat.cs
Normal file
@@ -0,0 +1,10 @@
|
||||
using UnityEngine;
|
||||
using UnityEngine.Rendering;
|
||||
|
||||
public class PlayerStat : Stat
|
||||
{
|
||||
public int StrStat;
|
||||
public int IntStat;
|
||||
|
||||
public int AttackPower => StrStat * 2;
|
||||
}
|
||||
2
Assets/02_Scripts/Player/Status/PlayerStat.cs.meta
Normal file
2
Assets/02_Scripts/Player/Status/PlayerStat.cs.meta
Normal file
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 988583c34b5280e42a4ea5b50a93e1f9
|
||||
Reference in New Issue
Block a user