private Finger[] fingers = new Finger[10]; // The informations of the touch for finger 1. void Start() { instance = this; input = new EasyTouchInput(); gameObject.AddComponent <EasyJoystick>(); gameObject.AddComponent <EasyFingerGestues>(); }
void InitEasyTouch() { input = new EasyTouchInput(); // Assing the fake singleton if (EasyTouch.instance == null) instance = this; // We search the main camera with the tag MainCamera. // For automatic object selection. mainCam = Camera.mainCamera; if (mainCam==null){ Debug.LogError("No camera with flag \"MainCam\" was found in the scene"); } // The texture to display the simulation of the second finger. #if ((!UNITY_ANDROID && !UNITY_IPHONE) || UNITY_EDITOR) secondFingerTexture =Resources.Load("secondFinger") as Texture; #endif }
void InitEasyTouch() { input = new EasyTouchInput(); // Assing the fake singleton if (EasyTouch.instance == null) instance = this; // The texture to display the simulation of the second finger. #if ((!UNITY_ANDROID && !UNITY_IPHONE && !UNITY_WP8 && !UNITY_BLACKBERRY) || UNITY_EDITOR) if (secondFingerTexture==null){ secondFingerTexture =Resources.Load("secondFinger") as Texture; } #endif }
void InitEasyTouch() { input = new EasyTouchInput(); // Assing the fake singleton if (EasyTouch.instance == null) instance = this; // We search the main camera with the tag MainCamera. // For automatic object selection. if (easyTouchCamera == null){ easyTouchCamera = Camera.main; if (easyTouchCamera==null && autoSelect){ Debug.LogWarning("No camera with flag \"MainCam\" was found in the scene, please setup the camera"); } } // The texture to display the simulation of the second finger. #if ((!UNITY_ANDROID && !UNITY_IPHONE) || UNITY_EDITOR) if (secondFingerTexture==null){ secondFingerTexture =Resources.Load("secondFinger") as Texture; } #endif }
private void InitEasyTouch() { this.input = new EasyTouchInput(); if (instance == null) { instance = this; } }