예제 #1
0
        private void UpdateUI()
        {
            if (HP == maxHP)
            {
                HPBar.gameObject.SetActive(false);
            }
            else
            {
                HPBar.gameObject.SetActive(true);
                HPBar.SetProgress(HP / maxHP);
            }

            OnHPUpdate?.Invoke();
        }
예제 #2
0
 protected virtual void _onHPUpdate()
 {
     OnHPUpdate?.Invoke(this, new MonsterUpdateEventArgs(this));
 }
예제 #3
0
        protected virtual void _onHPUpdate()
        {
            MonsterEventArgs args = new MonsterEventArgs(this);

            OnHPUpdate?.Invoke(this, args);
        }