示例#1
0
    // Use this for initialization
    void Start()
    {
        DungeonData newDungeon = DungeonData.RandomizeNewDungeon();

        CurrentDungeon = newDungeon;
        Debug.Log(newDungeon.ToString());

        // Init player
        MyPlayerTr.position = DungeonUtils.GetPositionByIndex(CurrentDungeon.entranceX, CurrentDungeon.entranceY);
        MyPlayer._currentI  = CurrentDungeon.entranceX;
        MyPlayer._currentJ  = CurrentDungeon.entranceY;
    }