void Start()
        {
            string     lng = "fr";
            GameObject obj = null;

            obj = GameObject.Find(IGamaManager.CSV_READER);
            obj.GetComponent <CSVReader>().lng = lng;
            obj.SendMessage("loadCSVFile");
            langueDic = obj.GetComponent <CSVReader>().langueDic;
            SetUpLangueDictionnary();

            //Debug.Log("The disctionnary length is " + langueDic.Count);
            //Debug.Log(" -------------------------------> " + GetLangueElementValue(langueDic, ILangue.MSG_INITIAL_BUDGET, "en", ILangue.MSG_INITIAL_BUDGET));

            GameObject.Find(ILittoSimConcept.MSG_INITIAL_BUDGET).GetComponent <Text>().text    = ILangue.GetLangueElement(ILangue.MSG_INITIAL_BUDGET);
            GameObject.Find(ILittoSimConcept.MSG_REMAINING_BUDGET).GetComponent <Text>().text  = ILangue.GetLangueElement(ILangue.MSG_REMAINING_BUDGET);
            GameObject.Find(ILittoSimConcept.LEGEND_UNAM).GetComponentInChildren <Text>().text = "  " + ILangue.GetLangueElement(ILangue.LEGEND_UNAM);
            GameObject.Find(ILittoSimConcept.LEGEND_DYKE).GetComponentInChildren <Text>().text = "  " + ILangue.GetLangueElement(ILangue.LEGEND_DYKE);
            GameObject.Find(ILittoSimConcept.LEGEND_NAME_ACTIONS).GetComponent <Text>().text   = ILangue.GetLangueElement(ILangue.LEGEND_NAME_ACTIONS);

            ILangue.GetAllAsVariables();
        }
Пример #2
0
        void Start()
        {
            ReadConfigFile();
            string lng = Config.LANGUAGE;

            Text text = GameObject.Find("Te").GetComponent <Text>();

            text.text = lng;

            GameObject obj;

            obj = GameObject.Find(IGamaManager.CSV_READER);
            obj.GetComponent <CSVReader>().lng = lng;
            obj.GetComponent <CSVReader>().LoadCSVFile();
            langueDic = obj.GetComponent <CSVReader>().langueDic;

            SetUpLangueDictionnary();


            //Debug.Log(" -------------------------------> " + GetLangueElementValue(langueDic, ILangue.MSG_INITIAL_BUDGET, "en", ILangue.MSG_INITIAL_BUDGET));

            GameObject.Find(ILittoSimConcept.MSG_INITIAL_BUDGET).GetComponent <Text>().text    = ILangue.GetLangueElement(ILangue.MSG_INITIAL_BUDGET);
            GameObject.Find(ILittoSimConcept.MSG_REMAINING_BUDGET).GetComponent <Text>().text  = ILangue.GetLangueElement(ILangue.MSG_REMAINING_BUDGET);
            GameObject.Find(ILittoSimConcept.LEGEND_PLU).GetComponentInChildren <Text>().text  = "  " + ILangue.GetLangueElement(ILangue.LEGEND_PLU);
            GameObject.Find(ILittoSimConcept.LEGEND_DYKE).GetComponentInChildren <Text>().text = "  " + ILangue.GetLangueElement(ILangue.LEGEND_DYKE);
            GameObject.Find(ILittoSimConcept.LEGEND_NAME_ACTIONS).GetComponent <Text>().text   = ILangue.GetLangueElement(ILangue.LEGEND_NAME_ACTIONS);
        }