Ejemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        BaseGrammar    gram = new BaseGrammar();
        GrammarDungeon dung = new GrammarDungeon();
        //dung.allFloorRooms = new List<List<GSubDungeon>>();
        GSubDungeon root = new GSubDungeon(new Rect(-1, -1, 0, 0));

        dung.root = root;
        GenerateGrammar(gram, root, 0);
    }
Ejemplo n.º 2
0
    private void GenerateGrammar(BaseGrammar baseG, GSubDungeon root, int lastDir)
    {
        Debug.Log("Splitting sub-dungeon");
        int rand = Random.Range(1, 8);

        //1: up
        //2: down
        switch (rand)
        {
        case 1:
            //somethin
            break;
        }
    }