animation.play don't work

Hi all! Unity 5

I have an animation what i want to start with c#, maybe with button onclick, but when i try to use the animation.play don’t working cauise i get error… sample:

animation.play (“anything”); error: Parser Error: unexpected symbol ') in class, struct, or interface member declaration

Any solution? please help me :slight_smile:

error code CS1519 , Here is a sample code:

using UnityEngine;
using System.Collections;
using UnityEngine.UI;
using UnityEditor;

public class OnClick : MonoBehaviour {

animation.play ("player_buttons");

   //in this section i get the Parser error

public void animation() {

	animation.play ("player_buttons");

   //in this .play is red in mono de and write "?"

}
 }

player_butons is the name of the animation