Inheritance: MonoBehaviour
Example #1
0
        private void AreaGenMenuButton_Click(object sender, RoutedEventArgs e)
        {
            AreaGen ag = new AreaGen();

            this.Close();
            ag.Show();
        }
Example #2
0
    private void Awake()
    {
        areaStats = I_areaStats;
        areaGen   = I_areaGen;
        areaVis   = I_areaVis;
        chars     = new List <Character>();
        waitEF    = new WaitForEndOfFrame();

        StartCoroutine(InitGame());
        StartCoroutine(InitLevel());
    }
Example #3
0
    //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.
        }
    }