public void Init(ChangeCurrentView changeCurrentView, ILobbyLayer lobbyLayer, IDefusingLayer defusingLayer, IEndLayer endLayer) { _endLayer = endLayer; _defusingLayer = defusingLayer; _lobbyLayer = lobbyLayer; _changeCurrentView = changeCurrentView; }
public void Init() { var viewManager = Substitute.For <IViewManager>(); _changeCurrentView = Substitute.For <ChangeCurrentView>(viewManager); _lobbyLayer = Substitute.For <ILobbyLayer>(); _defusingLayer = Substitute.For <IDefusingLayer>(); _endLayer = Substitute.For <IEndLayer>(); _uiController = new GameObject().AddComponent <UIController>(); _uiController.Init(_changeCurrentView, _lobbyLayer, _defusingLayer, _endLayer); }