updated start menu, added beacon

This commit is contained in:
2023-04-17 18:23:47 -04:00
parent bfd1b3cc5b
commit 5c76e75d38
33 changed files with 2017 additions and 2038 deletions

View File

@ -0,0 +1,43 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class FlareBeacon : MonoBehaviour
{
[SerializeField]
private float range = 1;
[SerializeField]
private float duration = 5f;
private List<GameObject> inRange= new List<GameObject>();
void OnDrawGizmosSelected()
{
// Draw a yellow sphere at the transform's position
Gizmos.color = Color.yellow;
Gizmos.DrawWireSphere(transform.position, range);
}
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
}
private void OnTriggerEnter(Collider other)
{
inRange.Add(other.gameObject);
}
private void OnTriggerExit(Collider other)
{
inRange.Remove(other.gameObject);
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 210701b0acc3ff542b0d114370d98777
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant: