public void Start() { SaveLoad.Load(); if (SaveLoad.save.currentLevel != "NA") { this.saveExists = true; } if (SaveLoad.save.win && !SaveLoad.save.winAck) { Debug.Log("Previous win was not acknowledged"); WinRegistration wr = gameObject.AddComponent <WinRegistration>(); wr.RegisterWinInterface(); } if (SaveLoad.save.win) { Debug.Log("Player has won the game"); } if (SaveLoad.save.winAck) { Debug.Log("Win has been acknowledged"); } Debug.Log("Current Level: " + SaveLoad.save.currentLevel); Debug.Log("Checkpoint: " + SaveLoad.save.checkpoint); }
public WinAuthorization() { InitializeComponent(); btnExit.Click += delegate { ClassMessageBox.MessageBoxQuestionExit(); }; btnReg.Click += delegate { WinRegistration winRegistration = new WinRegistration(); winRegistration.Show(); this.Close(); }; }