Beispiel #1
0
    public void SaveGame(string name)
    {
        WorldData worldData = new WorldData
        {
            x            = _playerPos.position.x,
            y            = _playerPos.position.y,
            health       = _playerHealthController.PlayerHealth,
            medkitCount  = _playerHealthController.GetCapsuleCount(),
            currentScene = SceneManager.GetActiveScene().name,
            questValues  = new List <QuestStages>(QuestValues.Instance.QuestList)
        };

        _saveLoadSystem.SaveData(name, worldData);
    }