If you need to inject dependencies into a type but can't do so with constructors, consider using method injection instead. This is most useful for
MonoBehaviours but can be done with any class, including test cases within the Unity Test Framework.
public class SomeBehaviour : MonoBehaviour
public void Construct(GameSettings settings)
speed = settings.speed;
[Inject]-annotated method can have any name and any accessibility level.
For more information about managing
GameObjects, see Injecting into MonoBehaviours.