예제 #1
0
    // Start is called before the first frame update
    void Start()
    {
        _term = GetComponent <TerminalBehaviour>();

        _term.Tiles.ScrambleJob().Run();
        _term.SetDirty();
    }
예제 #2
0
    // Update is called once per frame
    void Update()
    {
        if (Input.GetKeyDown(KeyCode.Space))
        {
            _term.WithFont(_fonts[_curr++]);
            _curr = _curr % _fonts.Count;

            _term.Tiles.ScrambleJob().Run();
            _term.SetDirty();
        }
    }
예제 #3
0
        void DrawTerminal()
        {
            _term.SetDirty();

            //Debug.Log($"Drawing Terminal. MapSize {_map.Size}. TermSize {_term.Size}. TilesSize {_term.Tiles.Size}");

            new RebuildConsoleFromMapJob
            {
                Tiles = _term.Tiles,
                Map   = _map.Points
            }.Run();
        }
예제 #4
0
    void Go()
    {
        if (_term == null)
        {
            return;
        }

        var tiles = _term.Tiles;

        tiles.ScrambleJob().Run();

        _term.SetDirty();
    }