コード例 #1
0
ファイル: EasyTouch.cs プロジェクト: liuxx220/GameApp
    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>();
    }
コード例 #2
0
ファイル: EasyTouch.cs プロジェクト: sonygod/ESPUnity
    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
    }
コード例 #3
0
ファイル: EasyTouch.cs プロジェクト: zs9024/Jungle
    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
    }
コード例 #4
0
ファイル: EasyTouch.cs プロジェクト: yh1094632455/StriveGame
    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
    }
コード例 #5
0
 private void InitEasyTouch()
 {
     this.input = new EasyTouchInput();
     if (instance == null)
     {
         instance = this;
     }
 }