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