Пример #1
0
 void Awake()
 {
     instance = this;
     if (config == null) config = Resources.Load<TerminalConfig>("Config/ZSH");
     if (mobileTouchCount <= 0) mobileTouchCount = 4;
     autoCompIndex = 0;
     autoCompList = new List<string>();
     terminalMethods = new TerminalMethods();
     inputHandler = new TerminalInputHandler(this);
     terminalGui = new TerminalGUI(this);
 }
Пример #2
0
 void Awake()
 {
     DontDestroyOnLoad(gameObject);
     if (config == null)
     {
         config = Resources.Load <TerminalConfig>("Config/ZSH");
     }
     if (mobileTouchCount <= 0)
     {
         mobileTouchCount = 4;
     }
     AutoCompIndex   = 0;
     AutoCompList    = new List <string>();
     terminalMethods = new TerminalMethods();
     inputHandler    = new TerminalInputHandler(this);
     terminalGui     = new TerminalGUI(this);
     logStack        = new LogStack(config);
 }
Пример #3
0
 void Start()
 {
     instance = this;
     GroupManager.main.group["Terminal"].Add(this);
 }