public ManagerLevels(ILevelsData data, Transform levelObject) { _levels = data.GetLevels; _blocks = data.GetBlocks; _levelObject = levelObject; _levels.CurrentIndexLevel = 0; }
public void InitController(ManagerBalls managerBalls, ManagerLevels managerLevels, ManagerBonuses managerBonuses, ILevelsData data) { _managerBalls = managerBalls; _managerLevels = managerLevels; _managerBonuses = managerBonuses; _levels = data.GetLevels; _blocks = data.GetBlocks; _levels.CurrentIndexLevel = 0; _managerLevels.InstantiateLevel(); }