public FoodLogic(IGameLogic game, ITimeLogic timer, ICollisionLogic collider, IFoodManager foodManager) { _timer = timer; _game = game; _foodManager = foodManager; collider.onCollision += onCollision; }
public CellLogic(IGameLogic game, IHomeLogic homeLogic, ICollisionLogic collider, ICellManager cellManager) { _game = game; _homeLogic = homeLogic; _cellManager = cellManager; collider.onCollision += onCollision; }