Mech Arena is a game developed by Unity3d & C# on Oculus Rift platform.
In Mech Arena, guests stand in a cage-shaped aircraft that follows each robot. With the controlling panel on the platform, guests can make their robots attack, defend, and avoid traps on the ground.
The record of gameplay.
Shaders for the robots' energy shield.
Robot's state machine design. The Attack state is splitted into 3 phases: before, effect and after. The before phase can be canceled by players. When one player spread the energy shield, there is 0.1s time margin for "Perfect Guard". When one robot is hitted in that time margin, its opponent will get damage and get into a long stun stat (see the right pipeline above). The hard thing is to map the animated shader with the timing and synchronize the animation and particle effect in both sizes.