private void Awake() { m_Commander = GetComponent <Commander>(); m_VisualConsole = GetComponentInChildren <VisualConsole>(); history = new CircularBuffer <string>(maxHistoryRegistry); LoadHistory(); }
public MainGame() { Console = new VisualConsole(this); Graphics = new GraphicsDeviceManager(this); Content.RootDirectory = "Content"; Assets = AssetManager.LoadAll(this, Content); EnglishText = DataTree.Load("content/text/english.json"); Window.Title = EnglishText.Get("Main").Get("GameName").GetString(); Window.AllowUserResizing = true; Window.ClientSizeChanged += (object sender, EventArgs e) => { UpdateScaleViewport(); }; IsMouseVisible = true; }
private void Awake() { m_VisualConsole = GetComponentInChildren <VisualConsole>(); }