-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathAIWaypointNetwork.cs
More file actions
27 lines (23 loc) · 1004 Bytes
/
AIWaypointNetwork.cs
File metadata and controls
27 lines (23 loc) · 1004 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
// Display Mode that the Custom Inspector of an AIWaypointNetwork
// component can be in
public enum PathDisplayMode { None, Connections, Paths }
// -------------------------------------------------------------------
// CLASS : AIWaypointNetwork
// DESC : Contains a list of waypoints. Each waypoint is a
// reference to a transform. Also contains settings
// for the Custom Inspector
// ------------------------------------------------------------------
public class AIWaypointNetwork : MonoBehaviour
{
[HideInInspector]
public PathDisplayMode DisplayMode = PathDisplayMode.Connections; // Current Display Mode
[HideInInspector]
public int UIStart = 0; // Start wayopoint index for Paths mode
[HideInInspector]
public int UIEnd = 0; // End waypoint index for Paths mode
// List of Transform references
public List<Transform> Waypoints = new List<Transform>();
}