Animation Playing issues in Unity 5 with C#

I dont know what is wrong with the scripts since its just half a line of code.
This issue making me really upset because i shouldnt have done a fault like this.
Anyway, here is the code;

animation.Play("L1camera");

Fixed it, it turned out that i was using an outdated API of Unity.