Example #1
0
        private void Application_logMessageReceived(string condition, string stackTrace, LogType type)
        {
            VC_Log log = new VC_Log(LogTypes.Error, "Unity log callback" + string.Format("Undefined log type: {0}!", type.ToString()));

            switch (type)
            {
            case LogType.Assert:
                log = new VC_Log(LogTypes.Exception, condition + " : stackTrace: " + stackTrace);
                break;

            case LogType.Error:
                log = new VC_Log(LogTypes.Error, condition + " : stackTrace: " + stackTrace);
                break;

            case LogType.Exception:
                log = new VC_Log(LogTypes.Exception, condition + " : stackTrace: " + stackTrace);
                break;

            case LogType.Log:
                log = new VC_Log(LogTypes.Log, condition + " : stackTrace: " + stackTrace);
                break;

            case LogType.Warning:
                log = new VC_Log(LogTypes.Warning, condition + " : stackTrace: " + stackTrace);
                break;
            }
            VConsole.Log(log);
        }
Example #2
0
 public static void Help()
 {
     foreach (KeyValuePair <string, VC_FunctionInfo> kvp in VC_FunctionInfo.functionInfos)
     {
         VConsole.Log("Command: " + kvp.Key + "------------| " + kvp.Value.Method.ToString());
     }
 }
Example #3
0
        void ProcessInput(string input)
        {
            if (!String.IsNullOrWhiteSpace(input))
            {
                VConsole.Execute(input.TrimEnd());

                inputField.text = string.Empty;
                Focus();
            }
        }
Example #4
0
 // Start is called before the first frame update
 void Start()
 {
     VConsole.AddComandClass(typeof(VC_Unity_Binding));
     VConsole.Init();
 }
Example #5
0
 private void OnDestroy()
 {
     VConsole.DeleteCommandReciveListener(OnLogAdded);
 }
Example #6
0
 private void Awake()
 {
     VConsole.AddCommandReciveListener(OnLogAdded);
 }