10 lines
No EOL
246 B
C#
10 lines
No EOL
246 B
C#
using UnityEngine;
|
|
|
|
public class GroundDetector : MonoBehaviour {
|
|
private void OnTriggerEnter(Collider other) {
|
|
if (other.CompareTag("Ground")) {
|
|
FindAnyObjectByType<Interface>().Die();
|
|
FindAnyObjectByType<PlayerRotate>().Die();
|
|
}
|
|
}
|
|
} |