Esempio n. 1
0
        /// <summary>
        /// <para>Eng. Requested game save. </para>
        /// <para>Kor. 저장 요청을 받았습니다. </para>
        /// </summary>
        public void RequestSaveSlot(VinoveScript _targetScript, SaveLoadSlotManagerState _calledBy, string[] _illustKey = null, float[] _illustColorAlpha = null, bool[] _illustActivated = null)
        {
            _state = _calledBy;

            switch (_state)
            {
            case SaveLoadSlotManagerState.OptionSave:
                _saveTargetScript = _targetScript;
                _saveTargetUID    = _targetScript.UID;
                _parentSceneUID   = _targetScript.ParentSceneUID;

                _speakerIllustKey        = _illustKey;
                _speakerIllustColorAlpha = _illustColorAlpha;
                _speakerIllustActivated  = _illustActivated;

                _addSaveFileButton.SetActive(true);

                EnableSlot();

                break;

            case SaveLoadSlotManagerState.NewGameSave:
                _saveTargetScript = _targetScript;
                _saveTargetUID    = _targetScript.UID;
                _parentSceneUID   = _targetScript.ParentSceneUID;

                _speakerIllustKey        = _illustKey;
                _speakerIllustColorAlpha = _illustColorAlpha;
                _speakerIllustActivated  = _illustActivated;

                _addSaveFileButton.SetActive(true);

                EnableSlot();
                break;
            }
        }
Esempio n. 2
0
        ///////////////////////////////
        /// Outward Called

        /// <summary>
        /// <para>Eng. Requested game load. </para>
        /// <para>Kor. 불러오기 요청을 받았습니다. </para>
        /// </summary>
        public void RequestLoadSlot()
        {
            _state = SaveLoadSlotManagerState.Load;
            EnableSlot();
        }