refactor: moved grow animation to its own class
This commit is contained in:
parent
150b602dc3
commit
779af276d3
14 changed files with 224 additions and 116 deletions
|
@ -25,17 +25,16 @@ namespace View {
|
|||
|
||||
IRoseSpawner spawner = FindObjectOfType<RoseSpawner>();
|
||||
|
||||
IRoseGrow grow = FindObjectOfType<GrowParticlesSpawner>();
|
||||
IRoseGrow inputGrow = FindObjectOfType<ExpressionInput>();
|
||||
IRoseGrow growCollection = new RoseGrowCollection(new[] { grow, inputGrow });
|
||||
IInputCallback growParticles = FindObjectOfType<GrowParticlesSpawner>();
|
||||
IRoseGrow growAnimation = FindObjectOfType<GrowAnimation>();
|
||||
|
||||
ExpressionClick = new ExpressionClick(Score, inputCollections, spawner, growCollection);
|
||||
ExpressionClick = new ExpressionClick(Score, inputCollections, spawner, growAnimation, growParticles);
|
||||
|
||||
CustomInput = new CustomInput();
|
||||
|
||||
PlayerPrefsRepository repository = new();
|
||||
Saver = new SaveGame(repository, Score);
|
||||
Loader = new LoadGame(repository, Score, inputCollections, spawner);
|
||||
Loader = new LoadGame(repository, Score, inputCollections, spawner, growAnimation);
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue