This commit is contained in:
BlubbFish 2018-09-06 20:26:38 +00:00
parent de32d997fb
commit 22d8a9ff2a
2 changed files with 2 additions and 1 deletions

View File

@ -9,7 +9,7 @@ namespace BlubbFish.Utils
public abstract class OwnModel<T> where T : class
{
private static readonly Lazy<T> _instance = new Lazy<T>(() => CreateInstanceOfT());
private List<OwnView> observer = new List<OwnView>();
private readonly List<OwnView> observer = new List<OwnView>();
public static T Instance
{
get {
@ -35,5 +35,6 @@ namespace BlubbFish.Utils
this.observer.ForEach(delegate (OwnView view) { view.Update(); });
}
abstract protected void Init();
abstract public void Dispose();
}
}

Binary file not shown.