Пример #1
0
        protected override void Awake()
        {
            base.Awake();

#if UNITY_STANDALONE || UNITY_EDITOR
            Viewer = new ConsoleViewPC(this);
#elif UNITY_IPHONE || UNITY_ANDROID || UNITY_BLACKBERRY || UNITY_WP8
            Viewer = new ConsoleViewMobile(this);
#endif

            if (Viewer != null)
            {
                Viewer.Awake();
            }
        }