to new git
This commit is contained in:
@ -1,20 +1,28 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.Generic;
|
||||
using System;
|
||||
using UnityEngine;
|
||||
|
||||
public enum NavPointType
|
||||
{
|
||||
Cover,
|
||||
Direction,
|
||||
}
|
||||
|
||||
|
||||
public class NavPoint : MonoBehaviour
|
||||
{
|
||||
public Vector3 position => gameObject.transform.position;
|
||||
public Vector3 Position => gameObject.transform.position;
|
||||
public float FlagDistance { get; private set; }
|
||||
|
||||
public NavPointType navType = NavPointType.Direction;
|
||||
|
||||
[HideInInspector]
|
||||
public int? PointId;
|
||||
public int PointId = 0;
|
||||
public float DeathAttr = 0;
|
||||
public List<Vector3> EnemiesSeen = new List<Vector3>();
|
||||
//Here other attributes;
|
||||
|
||||
private void Start()
|
||||
{
|
||||
FlagDistance = (GameObject.FindGameObjectWithTag("Flag").transform.position - position).magnitude;
|
||||
FlagDistance = (GameObject.FindGameObjectWithTag("Flag").transform.position - Position).magnitude;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user