summaryrefslogtreecommitdiffhomepage
path: root/app/systems/ui/score.rb
blob: c761561d9e7768aa884aadc4891150691d0f4a77 (plain)
1
2
3
4
5
6
7
FF::Sys.new("Score", priority: 50) do
  score = FF::Cmp::SingletonScore[0]
  score.score += 100
  score.entities[0].components[FF::Cmp::Label].each do |label|
    label.props[:text] = score.score.to_s
  end
end