I'm using Zenject framework and I'm using multiple GameObject
for a class but I don't know to do it using Zenject Container. Here's my code:
private GameObject _canvas;
private GameObject _mainWindow;
private GameObject _createAccountWindow;
void Awake()
{
_mainWindow = GameObject.FindGameObjectWithTag("MainWindow");
_canvas = GameObject.FindGameObjectWithTag("Canvas");
_createAccountWindow = GameObjectExtensions.FindObject(_canvas, "CreateAccountWindow");
}
Is it possible to inject these objects from Zenject Container? If it is, how can I do that?