This commit is contained in:
2025-01-17 13:10:42 +01:00
commit 4536213c91
15115 changed files with 1442174 additions and 0 deletions

View File

@@ -0,0 +1,25 @@
using System;
using UnityEngine;
using static UnityEngine.EventSystems.EventTrigger;
public class Meteorite : MonoBehaviour
{
private Rigidbody rigidbodyComponent;
private UIManager UIManager;
void Start()
{
UIManager = FindAnyObjectByType<UIManager>();
rigidbodyComponent = GetComponent<Rigidbody>();
//rigidbodyComponent.linearVelocity = new Vector3(0.7f, -0.4f, 0);
}
private void OnTriggerEnter(Collider other)
{
if (other.gameObject.layer != 9)
{
if (other.gameObject.tag == "droid")
StartCoroutine(UIManager.GameOverSequence());
Destroy(other.gameObject);
}
}
}