void getAllComponentsRef()
    {
        GameObject question = GameObject.Find("Question");

        questionLoader = (NF_QuestionLoader)question.GetComponent <NF_QuestionLoader>();

        GameObject trail = GameObject.Find("Drag_Trail");

        dragTrail       = (NF_DragTrail)trail.GetComponent <NF_DragTrail>();
        ropesGenerator  = (NF_RopesGenerator)this.GetComponent <NF_RopesGenerator>();
        inputController = (NF_InputController)this.GetComponent <NF_InputController>();

        // select skill id On random
        if (AGGameState.currentGameIndex == (int)AGGameIndex.k_NamingFruits)
        {
            currentCategoryID = (int)Random.Range((int)NamingFruits_CategoryID.id_Food, (int)NamingFruits_CategoryID.id_AlplabeticOrder + 1);
            backgroundsCount  = 4;
            backgroundArray   = new string[] { "Green", "Orange", "Blue", "Sunrise" };
            foregroundArray   = new string[] { "Top-Green-Back", "Top-Orange-Back", "Top-Blue-Back", "Top-Sunrise-Back" };
            frontLayerArray   = new string[] { "Top-Green-Front", "Top-Orange-Front", "Top-Blue-Front", "Top-Sunrise-Front" };

            dataManager = new JW_DataManager(AGGameIndex.k_NamingFruits, currentCategoryID, _progressionList.text);
            dataManager.loadCategoryResources(_resourcesData.text);
            dataManager.currentLevel = 1;
            dataManager.fetchLevelData();
        }
        else if (AGGameState.currentGameIndex == (int)AGGameIndex.k_2DShapesColors)
        {
            currentCategoryID = (int)Random.Range((int)SimpleColors_CategoryID.id_Colors, (int)SimpleColors_CategoryID.id_2DShapes + 1);
            backgroundsCount  = 2;
            backgroundArray   = new string[] { "Pink", "Purple" };
            foregroundArray   = new string[] { "Pink-Back-Frill", "Purple-Back-Frill" };
            frontLayerArray   = new string[] { "Pink-Front-Frill", "Purple-Front-Frill" };
            dataManager       = new JW_DataManager(AGGameIndex.k_2DShapesColors, currentCategoryID, _progressionList.text);
            dataManager.loadCategoryResources(_resourcesData.text);
            dataManager.currentLevel = 1;
            dataManager.fetchLevelData();
        }
        Debug.Log("NF_Skill ID:" + currentCategoryID);
    }
 void Awake()
 {
     dragTrail      = dragTrailObj.GetComponent <NF_DragTrail>();
     gameController = (NF_GameController)Camera.mainCamera.GetComponentInChildren <NF_GameController>();
     addFingureGestureObjects();
 }
 void Awake()
 {
     dragTrail = dragTrailObj.GetComponent<NF_DragTrail>();
     gameController = (NF_GameController) Camera.mainCamera.GetComponentInChildren<NF_GameController>();
     addFingureGestureObjects();
 }
    void getAllComponentsRef()
    {
        GameObject question = GameObject.Find("Question");
        questionLoader = (NF_QuestionLoader) question.GetComponent<NF_QuestionLoader>();

        GameObject trail = GameObject.Find("Drag_Trail");
        dragTrail = (NF_DragTrail) trail.GetComponent<NF_DragTrail>();
        ropesGenerator = (NF_RopesGenerator) this.GetComponent<NF_RopesGenerator>();
        inputController = (NF_InputController) this.GetComponent<NF_InputController>();

        // select skill id On random
        if(AGGameState.currentGameIndex == (int) AGGameIndex.k_NamingFruits){
            currentCategoryID=(int)Random.Range((int)NamingFruits_CategoryID.id_Food,(int)NamingFruits_CategoryID.id_AlplabeticOrder+1);
            backgroundsCount=4;
            backgroundArray = new string[] {"Green","Orange","Blue","Sunrise"};
            foregroundArray = new string[] {"Top-Green-Back","Top-Orange-Back","Top-Blue-Back","Top-Sunrise-Back"};
            frontLayerArray = new string[] {"Top-Green-Front","Top-Orange-Front","Top-Blue-Front","Top-Sunrise-Front"};

            dataManager = new JW_DataManager(AGGameIndex.k_NamingFruits,currentCategoryID,_progressionList.text);
            dataManager.loadCategoryResources(_resourcesData.text);
            dataManager.currentLevel=1;
            dataManager.fetchLevelData();

            }
        else if(AGGameState.currentGameIndex == (int) AGGameIndex.k_2DShapesColors){
            currentCategoryID= (int)Random.Range((int)SimpleColors_CategoryID.id_Colors,(int)SimpleColors_CategoryID.id_2DShapes+1);
            backgroundsCount=2;
            backgroundArray = new string[] {"Pink","Purple"};
            foregroundArray = new string[] {"Pink-Back-Frill","Purple-Back-Frill"};
            frontLayerArray = new string[] {"Pink-Front-Frill","Purple-Front-Frill"};
            dataManager = new JW_DataManager(AGGameIndex.k_2DShapesColors,currentCategoryID,_progressionList.text);
            dataManager.loadCategoryResources(_resourcesData.text);
            dataManager.currentLevel=1;
            dataManager.fetchLevelData();
        }
        Debug.Log("NF_Skill ID:" + currentCategoryID);
    }