c#:
http://pastebin.com/x9cN7wV8

Shader:
http://pastebin.com/Nzyf6zmG
Example:
Flasher.Flash(this.gameObject,.05f);