void Start()
    {
        m_msm = GetComponent <MenuStateMachine>();

        m_msm.AddState(LEVEL_SELECT, new LevelSelect());
        m_msm.AddState(MODE_SELECT, new GameModeSelect());
        m_msm.AddState(CHAR_SELECT, new CharacterSelect());


        m_msm.ChangeToState(MODE_SELECT);

        characterPrefabs = new List <GameObject>(gm.allCharacterPrefabs);
        currentES        = GameObject.FindObjectOfType <EventSystem>();
        currentES.SetSelectedGameObject(startButton.gameObject);
        currentButton = startButton;
        selectBar     = currentButton.transform.Find("SelectBar").gameObject;
    }
 public void ChangeToLevelSelect()
 {
     m_msm.ChangeToState(LEVEL_SELECT);
 }