// Start is called before the first frame update void Start() { _term = GetComponent <TerminalBehaviour>(); _term.Tiles.ScrambleJob().Run(); _term.SetDirty(); }
// 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(); } }
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(); }
void Go() { if (_term == null) { return; } var tiles = _term.Tiles; tiles.ScrambleJob().Run(); _term.SetDirty(); }