void Start() { _playerMovement = GetComponent <Mouvment_controller>(); _playerMovement.OnGetHurt += OnGetHurt; _currentHP = _maxHP; _currentMP = _maxMP; _hpSlider.maxValue = _maxHP; _hpSlider.value = _maxHP; _mpSlider.maxValue = _maxMP; _mpSlider.value = _maxMP; _startPosition = transform.position; _serviceManager = ServiceManager.Instanse; }
private void Start() { _playerMovement = GetComponent <Mouvment_controller>(); }