TouchScript.TouchManagerInstance.Awake C# (CSharp) 메소드

Awake() 개인적인 메소드

private Awake ( ) : void
리턴 void
        private void Awake()
        {
            if (instance == null)
            {
                instance = this;
            }
            else if (instance != this)
            {
                Destroy(this);
                return;
            }

            #if UNITY_5_4_OR_NEWER
            SceneManager.sceneLoaded += LevelWasLoaded;
            #endif

            gameObject.hideFlags = HideFlags.HideInHierarchy;
            DontDestroyOnLoad(gameObject);

            updateDPI();

            StopAllCoroutines();
            StartCoroutine(lateAwake());

            touchPointListPool.WarmUp(2);
            intListPool.WarmUp(3);

            #if TOUCHSCRIPT_DEBUG
            DebugMode = true;
            #endif
        }