public virtual void buttonFuntion()
    {
        if (Input.GetButtonDown(StaticStrings.X_key))
        {
            if (charSelector)
            {
                cs.selectCaracter(buttonIndex);
                _cursor.GetComponent <Image>().enabled = false;
            }
            else
            {
                string      n = allButtons[buttonIndex].GetComponent <SceneLoader>().scenename;
                SceneLoader s = allButtons[buttonIndex].GetComponent <SceneLoader>();

                if (s.isActiveAndEnabled)
                {
                    s.Load(n);
                }
            }
        }
    }