Exemplo n.º 1
0
        public void Awake()
        {
            Instance = this;
            float top   = Screen.height - 20;
            float width = Screen.width - 20;

            m_Rect = new Rect(TEXT_LEFT_MARGIN, top, width, TEXT_HEIGHT);

            m_Style = new GUIStyle
            {
                richText = false,
                active   =
                {
                    textColor  = Color.yellow,
                    background = Texture2D.blackTexture
                },
                normal =
                {
                    textColor  = Color.yellow,
                    background = Texture2D.blackTexture
                }
            };

            EraseString();
        }
Exemplo n.º 2
0
        public static void Initialize()
        {
#if (UNITY_STANDALONE)
            DebugConsoleGUI_Standalone.CreateConsoleGUI();
#elif (UNITY_ANDROID || UNITY_IOS || UNITY_WP_8 || UNITY_WP_8_1)
            DebugConsoleGUI_Mobile.CreateConsoleGUI();
#endif
        }