using System; using Domain; using Presenter; using UnityEngine; using View.UI; namespace View { public class Dependencies : MonoBehaviour { public ExpressionClick ExpressionClick { private set; get; } public Score Score { private set; get; } public CustomInput CustomInput { private set; get; } private void Awake() { Score = new Score(20, 5); IExpressionInput input = FindObjectOfType(); IExpressionInput visibility = FindObjectOfType(); IExpressionInput inputCollections = new ExpressionInputCollection(new[] { input, visibility }); IRoseSpawner spawner = FindObjectOfType(); ExpressionClick = new ExpressionClick(Score, inputCollections, spawner); CustomInput = new CustomInput(); } } }