コード例 #1
0
 public FoodLogic(IGameLogic game, ITimeLogic timer, ICollisionLogic collider, IFoodManager foodManager)
 {
     _timer                = timer;
     _game                 = game;
     _foodManager          = foodManager;
     collider.onCollision += onCollision;
 }
コード例 #2
0
 public SessionManager(ITimeLogic timer, IGameClient clients)
 {
     _id      = Guid.NewGuid().ToString();
     _clients = clients;
     _timer   = timer;
     DoReset();
 }