Inheritance: MonoBehaviour
コード例 #1
0
ファイル: MainWindow.xaml.cs プロジェクト: timoore34/grouptwo
        private void AreaGenMenuButton_Click(object sender, RoutedEventArgs e)
        {
            AreaGen ag = new AreaGen();

            this.Close();
            ag.Show();
        }
コード例 #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());
    }
コード例 #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.
        }
    }