mirror of
https://github.com/Fluffy-Bean/Again.git
synced 2025-05-25 04:44:54 +00:00
Yeet
This commit is contained in:
parent
99cfaa4793
commit
90cf5a6112
90 changed files with 17097 additions and 0 deletions
28
endTrigger.cs
Normal file
28
endTrigger.cs
Normal file
|
@ -0,0 +1,28 @@
|
|||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
using UnityEngine.SceneManagement;
|
||||
|
||||
public class endTrigger : MonoBehaviour
|
||||
{
|
||||
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
if (other.gameObject.CompareTag("Player"))
|
||||
{
|
||||
SceneManager.LoadScene("end");
|
||||
}
|
||||
}
|
||||
|
||||
// Start is called before the first frame update
|
||||
void Start()
|
||||
{
|
||||
|
||||
}
|
||||
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue