예제 #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);
        }
예제 #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());
     }
 }
예제 #3
0
        void ProcessInput(string input)
        {
            if (!String.IsNullOrWhiteSpace(input))
            {
                VConsole.Execute(input.TrimEnd());

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