dronkowitz

IntroMenu.cs

Jun 23rd, 2021 (edited)
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.39 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4.  
  5. public class IntroMenu : MainMenu
  6. {
  7.     protected override void Update()
  8.     {
  9.         base.Update();
  10.  
  11.         if (Input.anyKey)
  12.         {
  13.             CancelInvoke("LoadScene");
  14.             LoadScene(1);
  15.         }
  16.     }
  17.  
  18.     private void Start()
  19.     {
  20.         Invoke("LoadScene", 117);
  21.     }
  22. }
  23.  
Add Comment
Please, Sign In to add comment