38 lines
989 B
C#
Executable File
38 lines
989 B
C#
Executable File
using System.Collections.Generic;
|
|
using System;
|
|
using UnityEngine;
|
|
|
|
public enum NavPointType
|
|
{
|
|
Cover,
|
|
Direction,
|
|
}
|
|
|
|
|
|
public class NavPoint : MonoBehaviour
|
|
{
|
|
public Vector3 Position => gameObject.transform.position;
|
|
public float FlagDistance { get; private set; }
|
|
|
|
public NavPointType navType = NavPointType.Direction;
|
|
|
|
[HideInInspector]
|
|
<<<<<<< HEAD
|
|
public int PointId = 0;
|
|
=======
|
|
public int PointId;
|
|
>>>>>>> 351fa8ee12c499a0374be71a192a5f288611f467
|
|
public float DeathAttr = 0;
|
|
public List<Vector3> EnemiesSeen = new List<Vector3>();
|
|
|
|
private void Start()
|
|
{
|
|
<<<<<<< HEAD
|
|
FlagDistance = (GameObject.FindGameObjectWithTag("Flag").transform.position - Position).magnitude;
|
|
=======
|
|
PointId = GetInstanceID();
|
|
FlagDistance = (GameObject.FindGameObjectWithTag("Flag").transform.position - position).magnitude;
|
|
>>>>>>> 351fa8ee12c499a0374be71a192a5f288611f467
|
|
}
|
|
}
|