This commit is contained in:
2023-04-18 00:29:51 -04:00
parent 3b31797ce4
commit 6d2d0e4c4d
16 changed files with 6449 additions and 154 deletions

View File

@ -1,6 +1,7 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.AI;
public class FlareBeacon : MonoBehaviour
{
@ -10,6 +11,8 @@ public class FlareBeacon : MonoBehaviour
private float duration = 5f;
private List<GameObject> inRange= new List<GameObject>();
[SerializeField]
private NavMeshObstacle obstacle;
void OnDrawGizmosSelected()
{
@ -39,7 +42,7 @@ public class FlareBeacon : MonoBehaviour
if(Physics.Raycast(r,out hit)){
// transform.position = hit.point;
}
obstacle.radius = this.range / 10;
}
// Update is called once per frame