Advertisement
dronkowitz

CGTheaterLauncher.cs

Jul 27th, 2021 (edited)
103
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.51 KB | None | 0 0
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEngine.SceneManagement;
  5.  
  6. public class CGTheaterLauncher : MonoBehaviour
  7. {
  8.     public string videoname;
  9.     // Start is called before the first frame update
  10.     void Start()
  11.     {
  12.        
  13.     }
  14.  
  15.     // Update is called once per frame
  16.     void Update()
  17.     {
  18.        
  19.     }
  20.     public void Launchvideo()
  21.     {
  22.         CGTheater.currentvid = videoname;
  23.         SceneManager.LoadScene("CG Theater");
  24.     }
  25. }
  26.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement