updated
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user