Advertisement
Guest User

FailOrSucceed

a guest
Aug 10th, 2020
74
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.37 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.SceneManagement;
  5.  
  6. public class FORS : MonoBehaviour
  7. {
  8.     public bool Succeeded;
  9.  
  10.     public void Fail(){
  11.         Succeeded = false;
  12.     }
  13.     public void Succeed(){
  14.         Succeeded = true;
  15.     }
  16.     public void Menu(){
  17.         SceneManager.LoadScene(0);
  18.     }
  19. }
  20.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement