A game implemented with Unity3d.
1 Game rules
- Press the Up/Down/Left/Right Arrow of keyboard to control the hero.
- The patrols will walk around in their own areas.
- When you walk into a patrol's area, the patrol will be sensitive and speed up to catch up with you.
- When you escape from the patrol, he will wander around his area again.
- Each time you escape from a patrol, you score!
- When you are caught by the patrol, game over.
2 Game effect
3 UML class diagram
4 Code Explanation
Chinese version: http://blog.csdn.net/qq_33000225/article/details/70045292