Skip to content
Snippets Groups Projects
Select Git revision
  • 4e72ac665d3c7a94da88cdcfc185aa81ff894536
  • master default
  • JS-based-scroll-rendering
  • Paul_Marius_Level
  • Paul_Marius_2
  • Paul_Marius
  • Andi_Mark
  • be-UnityWebView
  • gitignoreFrameitServer
  • ZimmerBSc
  • Bugfix_StageLoading
  • stages
  • MAZIFAU_Experimental
  • tsc/coneworld
  • tsc/fact-interaction
  • marcel
  • MaZiFAU_TopSort
  • mergeHelper
  • zwischenSpeichern
  • tempAndrToMaster
  • SebBranch
  • 3.0
  • v2.1
  • v2.0
  • v1.0
25 results

HitWater.cs

Blame
  • Restart.cs 748 B
    using UnityEngine;
    using UnityEngine.SceneManagement;
    
    public class Restart : MonoBehaviour
    {
        public void LevelReset()
        {
            CommunicationEvents.LevelReset.Invoke(); // currently unused
    
            // delete Facts at Server
            CommunicationEvents.LevelFacts.hardreset(false);
            // only when generated! (in Level.cs)
            CommunicationEvents.SolutionManager.hardreset(false);
    
            SceneManager.LoadSceneAsync(SceneManager.GetActiveScene().buildIndex);
        }
    
        public void LoadStartScreen()
        {
            StartServer.process.Kill();  // null reference exception if Server started manually
            SceneManager.LoadScene(0);
        }
    
        public void OnApplicationQuit()
        {
            StartServer.process.Kill();
        }
    }