problème : pas de moyen de sauvegarder et de charger les niveaux entamés solution : fonctions save et load dans le LevelManager
15 lines
387 B
C#
15 lines
387 B
C#
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public interface ILevelObject
|
|
{
|
|
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();
|
|
} |