public void Init() { var obj = new GameObject(); _factory = obj.AddComponent <PlayerBoxFactory>(); _factory.ContainerPrefabs = new GameObject().AddComponent <PlayerBox>(); _factory.Init(); }
public PlayerBoxCreatingSystem(Contexts contexts, PlayerBoxFactory boxFactory) { _context = contexts.game; _factory = boxFactory; }