Links

SkillBarElement

Contains the logic for the skillbar visible outside the skill tree UI.

Implementation

public class SkillBarElement : MonoBehaviour

Inheritance

Fields

Name
Description
target
Target to which the skill bar belongs to
keyCode
Key code to execute the skill assigned to this element
skillIcon
Icon of the skill
Icon when no skill is assigned
Icon when the skill is in cooldown
Boolean value to determine whether to show an icon
when the skill is executing
Icon when the skill is executing
Boolean value to determine whether to show the
key code text for this element
Text to show which indicates which key to press to execute
the skill assigned to this element
Boolean value to determine whether to show the remaining execution time
Text component reference for the remaining execution time
Boolean value to determine whether to show the remaining cooldown time
Text component reference for the remainin cooldown time
Boolean value to determine whether to show the remaining skill executions of a stored skill
Text component reference for the remaining skill executions of a stored skill
skill
The skill assigned to this element
executer
Variable which holds the Skills component of the target
(the one who executes the skills)

Methods

Name
Description
Start()
Initializes the executer and UI
Update()
Checks for input to execute the assigned skill
Sets up the event callbacks
Executes the current assigned skill
Synchronizes a skill with the one from the skill tree skill bar
Updates the GUI when a skill is executing
Updates the icons and the key code text
Cancels the updating of the GUI when cancelling the skill execution
Last modified 2yr ago