void FindAllTools()
 {
     //Gets all the tools on the selected transform
     galleryTools       = new List <PictureToolBase>(PictureToolsRoot.GetComponentsInChildren <PictureToolBase>());
     currentGalleryTool = galleryTools.Find(e => e.TargetState == CurrentAppState);
     StartState(null);
 }
    void ChangeState(AppState state)
    {
        CurrentAppState = state;
        PictureToolBase newGalleryTool = galleryTools.Find(e => e.TargetState == CurrentAppState);

        if (newGalleryTool != null && currentGalleryTool != newGalleryTool)
        {
            EndState();
            currentGalleryTool = newGalleryTool;
        }

        StartState(stateManager.CurrentPictureFrame);
    }