// Use this for initialization
 void Start()
 {
     timer = 1;
     menuScript = GameObject.FindGameObjectWithTag("Global").GetComponent<MenuToGame>();
     anim = gameObject.GetComponent<Animator>();
 }
 // Use this for initialization
 void Start()
 {
     timer      = 1;
     menuScript = GameObject.FindGameObjectWithTag("Global").GetComponent <MenuToGame>();
     anim       = gameObject.GetComponent <Animator>();
 }