void Update() { CPlayerStat _playerStat = _player.GetComponent <CPlayerStat>(); _expGage.maxValue = _playerStat._levelupExp; _expGage.value = _playerStat._exp; _levelText.text = _playerStat._level.ToString() + "레벨"; _remainingPointText.text = _playerStat._statPoint.ToString(); _powerPointText.text = _playerStat._power.ToString(); _defensePointText.text = _playerStat._defense.ToString(); _healthPointText.text = _playerStat._health.ToString(); }
public bool PlayerState(GameObject player, string IsState) { _state = player.GetComponent <CPlayerStat>(); if (_state._state == CPlayerStat.State.Attack || _state._state == CPlayerStat.State.SkillA || _state._state == CPlayerStat.State.SkillB || _state._state == CPlayerStat.State.SkillC) { if (IsState == "Attack") { return(true); } } return(false); }
private void Awake() { _stat = GetComponent <CPlayerStat>(); _hpProgress = GetComponentInChildren <CHpProgress>().GetComponent <Image>(); }
void Awake() { _state = GetComponent <CPlayerStat>(); _animator = GetComponent <Animator>(); }