Roses/Assets/Scripts/View/Dependencies.cs
2024-04-15 18:40:50 +02:00

27 lines
No EOL
772 B
C#

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