using System; using UnityEngine; namespace Framework.Services { /// Kills the session as soon as this component is loaded /// /// This class is useful to make sure you don't forget to kill the active session. /// It could be placed in your main menu scene if reaching the main menu is /// only possible after quitting the game. /// public class SessionKiller : MonoBehaviour { /// Called when the script component gets loaded into a game object public void Awake() { ServiceContainer.Kill(Scope.Session); } } } // namespace Framework.Services