The demo of CS193P lecture 13.
Showing how to use NSTimer(now is Timer), and Animation
-
add BlinkFaceViewControler to controll blink eyes.
- using Timer to close and open eyes automatically.
- change eye to EyeView so can transition in Timer.
-
make head shake.
- change tap gesture action to another func.
- add animation to faceView(transform.rotated func to shake)