Luisoft

u/Luisoft




r/Zenject•

Hello Zenjecters.

My team is trying to perfom some test with Zenject but we find a wall. We use a simple MVC system so to make it symple we have a class *View for every scene.

The problem comes when we want to test the state of the scene when the View class do something into it.

To make it works I just have a scene with a GameObject. This GameObject has a Zenjenct Binding with his Transform also as ID: SomeGameObject.

To keep it simple this is the View.

public class SampleView: IInitializable
{
    [Inject] private AEvent _event;
    [Inject(Id="SomeGameObject")] private _gameObject;
    public void Initialize()
    {
        _event += SetGameObjectActive;
21

You've reached the end of this feed.