Exemple #1
0
        public void Open()
        {
            if (routine != null)
            {
                return;
            }
            //表示済みなら処理しない
            //if (scaleParentObj.transform.localScale == Vector3.one) { return; }

            //.iniファイルに設定されているディレクトリを参照
            var fileIO = new FileIO.FileIO();

            if (!File.Exists(Define.c_SettingFilePath))
            {
                //無いので作る
                fileIO.CreateFile(Define.c_SettingFilePath, Application.persistentDataPath);
            }
            var currentDirectory = fileIO.GetContents(Define.c_SettingFilePath);

            CurrentDirectory = currentDirectory;
            UpdateCurrentDirectories(CurrentDirectory);
            Display();
            routine = ScalingRoutine(scaleParentObj, Vector3.zero, Vector3.one, scaleSec);
            this.StartCoroutine(routine, () => { routine = null; });
        }
Exemple #2
0
        public void Close()
        {
            if (routine != null)
            {
                return;
            }
            routine = ScalingRoutine(scaleParentObj, Vector3.one, Vector3.zero, scaleSec);
            var fileIO = new FileIO.FileIO();

            //カレントディレクトリの情報保存
            fileIO.CreateFile(Define.c_SettingFilePath, CurrentDirectory, FileIO.FileIO.FileIODesc.Overwrite);

            this.StartCoroutine(routine, () => { routine = null; });
        }