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.
21 lines
464 B
C#
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();
|
|
} |