public LevelDescription Create(int width, int height) { if (width < MinFieldWidth) { width = MinFieldWidth; } if (height < MinFieldHeight) { height = MinFieldHeight; } var levelDescription = new LevelDescription { Field = new FieldDescription() { Width = width, Height = height, } }; return levelDescription; }
private void StartLevel(LevelDescription description) { CurrentLevel = description; Gamefield.StartGame(description); }
public void StartGame(LevelDescription levelDescription) { LevelDescription = levelDescription; Debug.Log("Start level: "+LevelDescription); GameStartTime = DateTime.UtcNow; Init(); }