feat: new rose spawn animation
This commit is contained in:
parent
b3996c6831
commit
1580910ec1
113 changed files with 6558 additions and 23 deletions
20
Assets/Scripts/Presenter/SpawnRose.cs
Normal file
20
Assets/Scripts/Presenter/SpawnRose.cs
Normal file
|
@ -0,0 +1,20 @@
|
|||
using Domain;
|
||||
|
||||
namespace Presenter {
|
||||
public class SpawnRose {
|
||||
private readonly Score _score;
|
||||
private readonly IRoseSpawner _spawner;
|
||||
|
||||
public SpawnRose(Score score, IRoseSpawner spawner) {
|
||||
_score = score;
|
||||
_spawner = spawner;
|
||||
}
|
||||
|
||||
public void Execute() {
|
||||
if(_score.Roses > Score.InitialRosesThreshold)
|
||||
_spawner.SpawnRose();
|
||||
else
|
||||
_spawner.SpawnInitialRose();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue