/// <summary> /// Called when this game object is released by the game engine. /// </summary> public override void OnReleased() { base.OnReleased(); CurrentLevelStorage = null; }
/// <summary> /// Called when an instance of this class is being initialized by the game engine. /// </summary> /// /// <param name="serializableData">An instance of the <see cref="ISerializableData"/> service.</param> public override void OnCreated(ISerializableData serializableData) { base.OnCreated(serializableData); CurrentLevelStorage = this; }