Unity Shape Recognizer Function