hitting is now an ability
This commit is contained in:
@@ -17,6 +17,8 @@ public partial class PlayerUi : Control
|
||||
|
||||
[Dependency]
|
||||
public TagsManager TagsManager => this.DependOn<TagsManager>();
|
||||
[Dependency]
|
||||
public CuesManager CuesManager => this.DependOn<CuesManager>();
|
||||
|
||||
#region Utils
|
||||
|
||||
@@ -58,8 +60,8 @@ public partial class PlayerUi : Control
|
||||
public void OnResolved()
|
||||
{
|
||||
if (_health == null || _mana == null) throw new Exception("Health and mana attributes are not set");
|
||||
Healthbar.Init(_health, Tag.RequestTag(TagsManager, "cues.resources.health"));
|
||||
Manabar.Init(_mana, Tag.RequestTag(TagsManager, "cues.resources.mana"));
|
||||
Healthbar.Init(_health);
|
||||
Manabar.Init(_mana);
|
||||
}
|
||||
|
||||
public void SetEnemyTargetProperties(TargetProperties targetProperties)
|
||||
|
||||
Reference in New Issue
Block a user