simple iOS swipe

hi,I know this question has already been asked but i want a very very simple way of getting swipe detection. For now i just want swiped to be printed in the console when you swipe up. The script i would like would be something ike this

void Update() {

    if("however you do the swipe thing") {

        Debug.log("hi");

    }

}

any other script would also be apreciated.

its not quite that simple… a swipe consists of an initial touch followed by a movement of that same touch point.

good news is that if you google “unity ios swipe” there are loads of scripts and tutorials on it…

Swipe Gesture iOS - Questions & Answers - Unity Discussions etc.

ok thx. There should be a simpler way of doing it but anyway thx a lot

how do you make animation transitions scripting?