示例#1
0
 private void Awake()
 {
     text = VRPrinter.CreateDisplay(TextAnchor.UpperLeft);
     if (dontDestroyOnLoad)
     {
         DontDestroyOnLoad(gameObject);
     }
 }
    void Awake()
    {
        if (onlyErrors)
        {
            Application.logMessageReceived += delegate(string condition, string stackTrace, LogType type)
            {
                if (type == LogType.Error)
                {
                    VRPrinter.Print(condition);
                }
            }
        }
        ;
        else
        {
            Application.logMessageReceived += delegate(string condition, string stackTrace, LogType type)
            {
                VRPrinter.Print(condition);
            }
        };
    }
}