init
This commit is contained in:
commit
f5c1616018
679 changed files with 188502 additions and 0 deletions
10
Assets/Scripts/GroundDetector.cs
Normal file
10
Assets/Scripts/GroundDetector.cs
Normal file
|
@ -0,0 +1,10 @@
|
|||
using UnityEngine;
|
||||
|
||||
public class GroundDetector : MonoBehaviour {
|
||||
private void OnTriggerEnter(Collider other) {
|
||||
if (other.CompareTag("Ground")) {
|
||||
FindAnyObjectByType<Interface>().Die();
|
||||
FindAnyObjectByType<PlayerRotate>().Die();
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue