Esempio n. 1
0
    // *****************************************************
    // Touch Controls
    // *****************************************************

    private void initTouchControls()
    {
        touchControls = GameObject.Find("TouchControls").GetComponent <TouchControls>();
        touchLayer    = touchControls.getLayer("grid");

        touchLayer.onPress   += onTouchPress;
        touchLayer.onRelease += onTouchRelease;
        touchLayer.onMove    += onTouchMove;
        touchLayer.onSwipe   += onTouchSwipe;
    }