Created
October 2, 2023 07:01
-
-
Save satomi-i-k/d2c21ff8abb0a6714b36ae50a1bbebbc to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.SceneManagement; | |
public class StartScene : MonoBehaviour | |
{ | |
public Animator StartScreen; | |
AudioSource audioSource; | |
// Start is called before the first frame update | |
void Start() | |
{ | |
audioSource = GetComponent<AudioSource>(); | |
} | |
// Update is called once per frame | |
void Update() | |
{ | |
if (Input.GetMouseButtonDown(0)) | |
{ | |
StartScreen.SetTrigger("Hide"); | |
SceneManager.LoadScene("Single_RacquetBall"); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment