Ejemplo n.º 1
0
    // Start is called before the first frame update
    void Start()
    {
        view = GetComponent <TileView>();
        view.FullRedraw();

        model = GetComponent <TileModel>();
        StartCoroutine(GenerationLoop());
    }
Ejemplo n.º 2
0
    private IEnumerator GenerationLoop()
    {
        int nRooms = 0;

        while (nRooms < roomCount)
        {
            GenerateRoom();
            view.FullRedraw();
            nRooms++;
            yield return(new WaitForSeconds(0.5f));
        }
    }