private void AreaGenMenuButton_Click(object sender, RoutedEventArgs e) { AreaGen ag = new AreaGen(); this.Close(); ag.Show(); }
private void Awake() { areaStats = I_areaStats; areaGen = I_areaGen; areaVis = I_areaVis; chars = new List <Character>(); waitEF = new WaitForEndOfFrame(); StartCoroutine(InitGame()); StartCoroutine(InitLevel()); }
//Generates the 2D array and Rooms List needed to show this area. public void generateArea() { if (!isGenerated && !isCity) { //Default Area Generation. AreaGen.defaultGen(this, areaSeed, out tiles, out rooms, out corridors); setupPortals(); isGenerated = true; //Will have a switch statement determining which mapGenerator to use based on the tileSet, if we //want to have Area's generated differently. } }