//Our play button will call this function
 //When the user click on the button
 public void StartGamePlay()
 {
     GMState = e_gameManagerState.Gameplay;
     UpdateGameManagerState();
 }
 // Use this for initialization
 void Start()
 {
     if (PlayerPrefs.HasKey("life"))
     {
         if (PlayerPrefs.GetInt("life") <= 0)
         {
             GMState = e_gameManagerState.Opening;
         }
         else
         {
             m_opening.SetActive(false);
             GMState = e_gameManagerState.Gameplay;
             UpdateGameManagerState();
         }
     }
 }
 //Function to set the game manager state
 public void SetGameManagerState(e_gameManagerState state)
 {
     GMState = state;
     UpdateGameManagerState();
 }