public void SaveScarletCipher(Model_SaveData data) { Model_ScarletCipher ScarletCipher = new Model_ScarletCipher( _scarletCipher: scarletCipher.ScarletCipher, _visibility: scarletCipher.ScarletCipherVisibility, _mirrorsActivation: scarletCipher.MynesMirrorsActivationStates, _mirrorsSolved: scarletCipher.MynesMirrorsSolved ); data.scarletCipherData = ScarletCipher; }
public void LoadScarletCipher(Model_SaveData data) { if (data.scarletCipherData == null) { Debug.Log("There is no ScarletCipher state data to load."); return; } Model_ScarletCipher ScarletCipher = new Model_ScarletCipher( _scarletCipher: data.scarletCipherData.scarletCipher, _visibility: data.scarletCipherData.visibility, _mirrorsActivation: data.scarletCipherData.mirrorsActivation, _mirrorsSolved: data.scarletCipherData.mirrorsSolved ); scarletCipher.ScarletCipher = ScarletCipher.scarletCipher; scarletCipher.ScarletCipherVisibility = ScarletCipher.visibility; scarletCipher.MynesMirrorsActivationStates = ScarletCipher.mirrorsActivation; scarletCipher.MynesMirrorsSolved = ScarletCipher.mirrorsSolved; }