//in this state you learn how to move with left d-pad
    void UpdateToTutorial1State()
    {
        Debug.Log("Entering tut1");
        if (SteamVR_Actions._default.SkipButton.GetStateDown(SteamVR_Input_Sources.LeftHand))
        {
            Skip = true;
        }

        //for up clicks on (LeftHand) up
        if (SteamVR_Actions._default.UpClick.GetStateDown(SteamVR_Input_Sources.LeftHand))
        {
            Pulse(.1f, 150, 25, SteamVR_Input_Sources.LeftHand);
            LeftDPad.transform.Find("UpLeftHand").gameObject.SetActive(true);
            UpLeftHand = true;
            //Debug.Log("UpClickPressed");
        }

        //for up clicks on (LeftHand) Down
        if (SteamVR_Actions._default.DownClick.GetStateDown(SteamVR_Input_Sources.LeftHand))
        {
            Pulse(.1f, 150, 25, SteamVR_Input_Sources.LeftHand);
            LeftDPad.transform.Find("DownLeftHand").gameObject.SetActive(true);
            DownLeftHand = true;
            //Debug.Log("DownClickPressed");
        }

        //for up clicks on (LeftHand) Right
        if (SteamVR_Actions._default.RightClick.GetStateDown(SteamVR_Input_Sources.LeftHand))
        {
            Pulse(.1f, 150, 25, SteamVR_Input_Sources.LeftHand);
            LeftDPad.transform.Find("RightLeftHand").gameObject.SetActive(true);
            RightLeftHand = true;
            //Debug.Log("RightClickPressed");
        }

        //for up clicks on (LeftHand) left
        if (SteamVR_Actions._default.LeftClick.GetStateDown(SteamVR_Input_Sources.LeftHand))
        {
            Pulse(.1f, 150, 25, SteamVR_Input_Sources.LeftHand);
            LeftDPad.transform.Find("LeftLeftHand").gameObject.SetActive(true);
            LeftLeftHand = true;
            //Debug.Log("LeftClickPressed");
        }
        if (UpLeftHand == true && DownLeftHand == true && RightLeftHand == true && LeftLeftHand == true)
        {
            Debug.Log("Entering tut2");
            AppManager.GetComponent <AppManagerScript>().SkipTutorial();
            AppManager.GetComponent <AppManagerScript>().Tutorial2();
            AchievementManagerRef.GetComponent <AchievementManager>().EarnAchievement("Tutorial 1");
            currentState = FSMState_Waypoint.Tutorial2;
        }
        if (Skip == true)
        {
            AchievementManagerRef.GetComponent <AchievementManager>().EarnAchievement("Found The Skip Button");
            AppManager.GetComponent <AppManagerScript>().SkipTutorial();
            AppManager.GetComponent <AppManagerScript>().MainMenu();
            currentState = FSMState_Waypoint.MainMenu;
        }
    }
 void UpdateToMainMenuState()
 {
     if (ResetTutorialGame == true)
     {
         Debug.Log("Reseting Tutorial");
         AppManager.GetComponent <AppManagerScript>().SkipTutorial();
         AppManager.GetComponent <AppManagerScript>().Tutorial1();
         AchievementManagerRef.GetComponent <AchievementManager>().EarnAchievement("Need More Practice");
         ResetTutorial();
         currentState = FSMState_Waypoint.Tutorial1;
     }
 }
    //in this state you learn how to click on UI buttons
    void UpdateToTutorial3State()
    {
        if (SteamVR_Actions._default.SkipButton.GetStateDown(SteamVR_Input_Sources.LeftHand))
        {
            Skip = true;
        }

        if (ClickedOnUI == true)
        {
            Debug.Log("Entering Main Menu");
            AppManager.GetComponent <AppManagerScript>().SkipTutorial();
            AppManager.GetComponent <AppManagerScript>().MainMenu();
            AchievementManagerRef.GetComponent <AchievementManager>().EarnAchievement("Tutorial 3");
            currentState = FSMState_Waypoint.MainMenu;
        }
        if (Skip == true)
        {
            AchievementManagerRef.GetComponent <AchievementManager>().EarnAchievement("Found The Skip Button");
            AppManager.GetComponent <AppManagerScript>().SkipTutorial();
            AppManager.GetComponent <AppManagerScript>().MainMenu();
            currentState = FSMState_Waypoint.MainMenu;
        }
    }
    public GameObject RightDPad;           //to use for tutorial lighting

    void Start()
    {
        AppManager.GetComponent <AppManagerScript>().Tutorial1();
        currentState = FSMState_Waypoint.Tutorial1;
    }