Replies: 1 comment 1 reply
-
|
Short answer: There is no way to do that. Depending on why you do not want to register MonoBehaviour, the solution may be different.
|
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I'm super new to DI in general, especially in Unity.
I'm a little bit confused how things works
Currently I'm trying to implement MVP pattern in unity
So i have this monobehaviour class called MovementComponent , which implementing IMovable interface.
And this is my presenter for MovementComponent:
My question is: how am I supposed to inject the IMoveable component into the presenter without registering the component directly on public/serializefield?
Beta Was this translation helpful? Give feedback.
All reactions