Default implementation of ITouchManager.
Inheritance: UnityEngine.MonoBehaviour, ITouchManager
        private void Awake()
        {
            if (instance == null)
            {
                instance = this;
            }
            else if (instance != this)
            {
                Destroy(this);
                return;
            }

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

            updateDPI();

            StopAllCoroutines();
            StartCoroutine(lateAwake());

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

#if TOUCHSCRIPT_DEBUG
            DebugMode = true;
#endif
        }
Exemplo n.º 2
0
        private void Awake()
        {
            if (instance == null)
            {
                instance = this;
            }

            updateDPI();

            StopAllCoroutines();
            StartCoroutine("lateAwake");
        }
Exemplo n.º 3
0
        private void Awake()
        {
            if (instance == null)
            {
                instance = this;
            }
            else if (instance != this)
            {
                Destroy(this);
                return;
            }

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

            updateDPI();

            StopAllCoroutines();
            StartCoroutine("lateAwake");
        }
        private void Awake()
        {
            if (instance == null)
            {
                instance = this;
            }
            else if (instance != this)
            {
                Destroy(this);
                return;
            }

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

            updateDPI();

            StopAllCoroutines();
            StartCoroutine(lateAwake());

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

            #if TOUCHSCRIPT_DEBUG
            DebugMode = true;
            #endif
        }
Exemplo n.º 5
0
        private void Awake()
        {
            if (instance == null) instance = this;

            updateDPI();

            StopAllCoroutines();
            StartCoroutine("lateAwake");
        }
Exemplo n.º 6
0
        private void Awake()
        {
            if (instance == null)
            {
                instance = this;
            }
            else if (instance != this)
            {
                Destroy(this);
                return;
            }

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

            updateDPI();

            StopAllCoroutines();
            StartCoroutine("lateAwake");
        }