Exemplo n.º 1
0
 public IEnumerator WorldSimulation(IGameSimulation simulationRules)
 {
     while (true)
     {
         simulationRules.WorldTick();
         yield return(new WaitForSeconds(worldTick));
     }
 }
Exemplo n.º 2
0
        public GameSimulationManager(IMatchMaker matchMaker, IGameSimulation gameSimulation)
        {
            Contract.Assert(matchMaker != null, "matchMaker!=null");
            Contract.Assert(gameSimulation != null, "gameSimulation!=null");

            _matchMaker     = matchMaker;
            _gameSimulation = gameSimulation;
        }