This commit is contained in:
Michal 2022-05-13 16:23:52 +01:00 committed by GitHub
parent 99cfaa4793
commit 90cf5a6112
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
90 changed files with 17097 additions and 0 deletions

28
endTrigger.cs Normal file
View 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()
{
}
}