I always wanted to create this kind of project which can be used for home automation. This is a sample case for cotrolling an LED from a mobile device. Unity editor was used to build the mobile application. The LED was controlled from an Arduino which had an in-built WiFi shield. Hence, by a click of the cube in the app, the LED switched on/off.
The project files can be found here GitHub