Felix Boucher f1a328122c save / load dans un fichier
problème : le save et le load fonctionnait avec un string en mémoire

solution : créer un fichier save.txt dans les assets quand on sauvegarde, et lire de ce fichier quand on load.
2023-05-28 17:37:54 -04:00

21 lines
464 B
C#

using System.Collections.Generic;
using UnityEngine;
public interface ILevelObject
{
public enum ObjectType
{
Tile = 0,
Prefab = 1
}
string Name { get; }
Vector3 Position { get; }
void LevelUpdate();
void LevelStart();
void LevelDestroy();
bool Equals(ILevelObject other);
Dictionary<string, object> ToDictionary();
void LoadDictionary(Dictionary<string, object> dict);
void RemoveFromLevel();
}