instance method Component#update
Component#update(updateCount) → undefined
-
updateCount
(Number
) – The total number of times thatGame#update
has been called for this game. This value has nothing to do with the number of times thisComponent
has been updated.
Updates the state of the individual Component
. This is called in
the game loop once this component has been added through
Game#addComponent
.
This function should be thought of as the "logic" function for the Component
.