refactor: Cleaned up score view interface
This commit is contained in:
parent
779af276d3
commit
858e49e1d9
13 changed files with 36 additions and 123 deletions
16
Assets/Scripts/View/Collections/ScoreViewCollection.cs
Normal file
16
Assets/Scripts/View/Collections/ScoreViewCollection.cs
Normal file
|
@ -0,0 +1,16 @@
|
|||
using Presenter;
|
||||
|
||||
namespace View.Collections {
|
||||
public class ScoreViewCollection : IScoreView {
|
||||
private readonly IScoreView[] _inputs;
|
||||
|
||||
public ScoreViewCollection(IScoreView[] inputs) {
|
||||
_inputs = inputs;
|
||||
}
|
||||
|
||||
public void UpdateView(int score) {
|
||||
foreach (IScoreView input in _inputs)
|
||||
input.UpdateView(score);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue