Advertisement
dronkowitz

SplashScreen.cs

Jan 28th, 2022
814
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class SplashScreen : MonoBehaviour
  6. {
  7.     public GameObject mainMenu;
  8.     // Start is called before the first frame update
  9.     void Start()
  10.     {
  11.        
  12.     }
  13.  
  14.     // Update is called once per frame
  15.     void Update()
  16.     {
  17.         if (Input.anyKeyDown)
  18.         {
  19.             mainMenu.SetActive(true);
  20.             gameObject.SetActive(false);
  21.         }
  22.     }
  23. }
  24.  
Advertisement
Advertisement
Advertisement
RAW Paste Data Copied
Advertisement