コード例 #1
0
        public Terminal(Monitor tmpMonitor, KeyListener tmpKeyListener, Callback terminalCallback)
        {
            // Assign base values
            _command     = "";
            _monitor     = tmpMonitor;
            _keyListener = tmpKeyListener;
            _myCallback  = terminalCallback;

            // Instantiate keyListeners
            InitializeKeyListeners();

            InitializeMonitorLayer();
        }
コード例 #2
0
 public void SetUp()
 {
     go = new GameObject();
     k  = go.AddComponent(typeof(UserInput.KeyListener)) as UserInput.KeyListener;
 }