Пример #1
0
        public MenuBoxTool(string aTitle, string aFilePathLanguage, ApplicationPlayer aApplicationPlayer)
            : base(aTitle)
        {
            Dictionary <string, string> lDictionaryDescription = ReadDictionaryLanguage(aFilePathLanguage);

            menuItemList.Add(new MenuItemSettings(lDictionaryDescription["SETTINGS"], Application.streamingAssetsPath + "/Language/Player/Dialog/DialogSettings.language", aApplicationPlayer));
        }
Пример #2
0
        public MenuBoxFile(string aTitle, string aFilePathLanguage, ApplicationPlayer aApplicationPlayer)
            : base(aTitle)
        {
            Dictionary <string, string> lDictionaryDescription = ReadDictionaryLanguage(aFilePathLanguage);

            menuItemList.Add(new MenuItemChangeDirectory(lDictionaryDescription["INPUT"], aApplicationPlayer.SetInput, aApplicationPlayer.directoryInfoRecentList));
        }
Пример #3
0
        public MenuItemSettings(string aTitle, string aFilePathLanguage, ApplicationPlayer aApplicationPlayer)
            : base(aTitle)
        {
            Dictionary <string, string> lDictionaryDescription = ReadDictionaryLanguage(aFilePathLanguage);

            dialogSettings    = new DialogSettings(ChangeSettings, lDictionaryDescription);
            applicationPlayer = aApplicationPlayer;
            isShow            = false;
        }
Пример #4
0
        public MenuBar(string aFilePathLanguage, ApplicationPlayer aApplicationPlayer)
        {
            Dictionary <string, string> lDictionaryDescription = ReadDictionaryLanguage(aFilePathLanguage);

            MenuBoxFile lMenuBoxFile = new MenuBoxFile(lDictionaryDescription["FILE"], Application.streamingAssetsPath + "/Language/Player/Menu/MenuBar/MenuBoxFile.language", aApplicationPlayer);
            MenuBoxTool lMenuBoxTool = new MenuBoxTool(lDictionaryDescription["TOOL"], Application.streamingAssetsPath + "/Language/Player/Menu/MenuBar/MenuBoxTool.language", aApplicationPlayer);

            menuBoxList.Add(lMenuBoxFile);
            menuBoxList.Add(lMenuBoxTool);

            Rect = new Rect(0.0f, 0.0f, 0.0f, 0.0f);
        }
Пример #5
0
        void Awake()
        {
            isSetGuiStyle = false;

            Unity.Function.Graphic.Gui.camera = camera;
            GameObject obj = GameObject.Find("GuiStyleSet");

            GuiStyleSet.Reset(obj);

            AudioSettings.outputSampleRate = 44100;
            sampleRate = AudioSettings.outputSampleRate;

            applicationPlayer = new ApplicationPlayer(new DirectoryInfo(Application.streamingAssetsPath + "/Sound/Music"), GetComponent <MeshFilter>(), GetComponent <MeshRenderer>());

            soundBuffer = new Dictionary <int, float[]>();
        }