public void initialiseCustomExercise(FMC_PracticeBoxLayout _practiceBoxLayout, FMC_MenuController _menuController, FMC_Settings_Input.allInformation _problemInfo)
 {
     isClicked         = false;
     clickPossible     = false;
     practiceBoxLayout = _practiceBoxLayout;
     menuController    = _menuController;
     problemInfo       = _problemInfo;
 }
 // Use this for initialization
 void Start()
 {
     menu = FindObjectOfType <FMC_MenuController> ();
 }
    private void Start()
    {
        DontDestroyOnLoad(gameObject);
        instance = this;
        //if (instance == null)
        //{
        //instance = this;

        //}
        //else if (instance != this)
        //{
        //    Destroy(this.gameObject);
        //    return;
        //}

        Application.targetFrameRate = 60;

        ContentData.loadData();


        //storyModeSettings = new FMC_Settings_StoryMode();
        //storyModeSettings.loadLevelData();
        //oneTimesOneSettings = new FMC_Settings_OneTimesOne();
        //oneTimesOneBigSettings = new FMC_Settings_OneTimesOne();
        //freestyleSettings = new FMC_Settings_Freestyle();
        //settingsController = new FMC_Settings_Controller(storyModeSettings, oneTimesOneSettings, oneTimesOneBigSettings, freestyleSettings);
        //taskCreator = new FMC_TaskCreation(settingsController);
        //statistics = new FMC_Statistics(settingsController, storyModeSettings);
        //saveLoad = new FMC_SaveLoad(storyModeSettings, oneTimesOneSettings, freestyleSettings, statistics);

        //loadTranslation = new FMC_Translation();
        //fullTranslation = new Dictionary<FMC_Translation.translations, List<string>>();
        //fullTranslation = loadTranslation.getTranslation();


        storyModeSettings.loadLevelData();
        settingsController.Init(storyModeSettings, oneTimesOneSettings, oneTimesOneBigSettings, freestyleSettings);
        taskCreator.Init(settingsController);
        statistics.Init(settingsController, storyModeSettings);

        saveLoad.Init(storyModeSettings, oneTimesOneSettings, freestyleSettings, statistics);
        subIsActive = saveLoad.subscriptionIsActiveFromSavedData();

        fullTranslation = new Dictionary <FMC_Translation.translations, List <string> >();
        fullTranslation = loadTranslation.getTranslation();


        menuController = null;



        PS_PlayButtonInfo.playerNameChanged += setCurrentPlayer;
        if (SceneManager.GetActiveScene().name == "Menu01")
        {
            loadData();
        }

        timeWhenApplicationStopped = DateTime.Now;

        if (newSessionStarted != null)
        {
            newSessionStarted();
        }
    }
 public void setMenuController(FMC_MenuController controller)
 {
     menuController = controller;
 }
    private void Awake()
    {
        if (instance == null)
        {
            instance = this;
            DontDestroyOnLoad(gameObject);
        }
        else if (instance != this)
        {
            Destroy(this.gameObject);
            return;
        }

        if (FMC_GameDataController.instance)
        {
            gameDataController = FMC_GameDataController.instance;
        }

        gameDataController.setMenuController(this);
        DontDestroyOnLoad(gameObject);
        SceneManager.sceneLoaded += levelWasLoaded;

        freestyleSettings.SetActive(true);
        freestyleSettings.SetActive(false);
        oneTimesOneSettings.SetActive(true);
        oneTimesOneSettings.SetActive(false);
        oneTimesOneSettingsBig.SetActive(true);
        oneTimesOneSettingsBig.SetActive(false);
        showPastTasks.SetActive(true);
        showPastTasks.SetActive(false);
        swipeCards.SetActive(true);
        swipeCards.SetActive(false);
        swipeCardsAd.SetActive(true);
        swipeCardsAd.SetActive(false);

        lastOpenedScreen = selectionScreen;

        cameraHeight   = Camera.main.orthographicSize * 2.0f;
        cameraWidth    = cameraHeight * Camera.main.aspect;
        cameraPosition = new Vector2(Camera.main.transform.position.x, Camera.main.transform.position.y);

        if (swipeCardHeaders.Count == 3 && swipeCardTexts.Count == 3 && FMC_GameDataController.instance)
        {
            if (swipeCardHeaders[0])
            {
                swipeCardHeaders[0].text = FMC_GameDataController.instance.fullTranslation[FMC_Translation.translations.swipeCards][6];
            }

            if (swipeCardHeaders[1])
            {
                swipeCardHeaders[1].text = FMC_GameDataController.instance.fullTranslation[FMC_Translation.translations.swipeCards][7];
            }

            if (swipeCardHeaders[2])
            {
                swipeCardHeaders[2].text = FMC_GameDataController.instance.fullTranslation[FMC_Translation.translations.swipeCards][8];
            }

            if (swipeCardTexts[0])
            {
                swipeCardTexts[0].text = FMC_GameDataController.instance.fullTranslation[FMC_Translation.translations.swipeCards][15];
            }

            if (swipeCardTexts[1])
            {
                swipeCardTexts[1].text = FMC_GameDataController.instance.fullTranslation[FMC_Translation.translations.swipeCards][16];
            }

            if (swipeCardTexts[2])
            {
                swipeCardTexts[2].text = FMC_GameDataController.instance.fullTranslation[FMC_Translation.translations.swipeCards][17];
            }
        }
        mainSwipeCardHeader.text = FMC_GameDataController.instance.fullTranslation[FMC_Translation.translations.swipeCards][19].ToUpper();
    }