CurrentScreenInputHandler ProcessScreenInputHandler; //Used for selecting input source between mouse and touch

        // Use this for initialization
        void Start() {
#if UNITY_IPHONE || UNITY_ANDROID || UNITY_WP8 || UNITY_BLACKBERRY
		    ProcessScreenInputHandler = TouchInput;
#endif
#if UNITY_EDITOR || UNITY_WEBPLAYER || UNITY_STANDALONE
			ProcessScreenInputHandler = MouseInput;
#endif
        }
Exemple #2
0
        CurrentScreenInputHandler ProcessScreenInputHandler; //Used for selecting input source between mouse and touch

        // Use this for initialization
        void Start()
        {
#if UNITY_IPHONE || UNITY_ANDROID || UNITY_WP8 || UNITY_BLACKBERRY
            ProcessScreenInputHandler = TouchInput;
#endif
#if UNITY_EDITOR || UNITY_WEBPLAYER || UNITY_STANDALONE
            ProcessScreenInputHandler = MouseInput;
#endif
        }