public override Task OnConnected() { if (Universe.ViewerCount < 1) { var thread = new Thread(() => Universe.Start()); thread.Start(); } Universe.ViewerCount++; return(base.OnConnected()); }
void Start() { Universe = new Universe(); Universe.Start(); }
public void startSimulation(List <Cell> cells, int generation) { CurrentUniverse = Universe.Start(cells, generation); }