コード例 #1
0
 private void Awake()
 {
     m_Commander     = GetComponent <Commander>();
     m_VisualConsole = GetComponentInChildren <VisualConsole>();
     history         = new CircularBuffer <string>(maxHistoryRegistry);
     LoadHistory();
 }
コード例 #2
0
ファイル: MainGame.cs プロジェクト: CarimA/jrpg
        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;
        }
コード例 #3
0
 private void Awake()
 {
     m_VisualConsole = GetComponentInChildren <VisualConsole>();
 }