Advertisement
Dieton

SaveLoadData

May 18th, 2023 (edited)
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.95 KB | Gaming | 0 0
  1. /*
  2. By: Dieton
  3. 2022
  4. */
  5. using System.Collections;
  6. using System.Collections.Generic;
  7. using UnityEngine;
  8. using System;
  9.  
  10. [Serializable]
  11. public class SaveLoadData{
  12.     //save data system last save
  13.     public string lastSavedTitle;
  14.     //player data
  15.     public List<PlayerData> playerData = new List<PlayerData>();
  16. }
  17.  
  18. [Serializable]
  19. public class PlayerData{
  20.     //save data
  21.     public string saveName;
  22.     public string saveTimeDate;
  23.     //game data
  24.     public int levelID;
  25.     //player data
  26.     public string playerName;
  27.  
  28.     public PlayerData(
  29.         //save data
  30.         string _saveName,
  31.         string _saveTimeDate,
  32.         //game data
  33.         int _levelID,
  34.         //player data
  35.         public string _playerName;
  36.         )
  37.     {
  38.         //save data
  39.         saveName = _saveName;
  40.         saveTimeDate = _saveTimeDate;
  41.         //game data
  42.         levelID = _levelID;
  43.         //player data
  44.         playerName = _playerName
  45.     }
  46. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement