Files
2024-11-20 15:21:28 +01:00

58 lines
1.0 KiB
C#

// (c) Copyright HutongGames, LLC 2010-2014. All rights reserved.
//
// TODO: implement FsmNavMeshPath properly in NavMeshCalculatePath and NaMeshCalculatePathBetweenGameObject.
// this is currently very much under progress, not sure if this is the right way to go about this. maybe too advanced and should be left to user to implement this?
using UnityEngine;
using System.Collections;
public class FsmNavMeshPath : MonoBehaviour {
//Corner points of path
public Vector3[] corners;
/*
{
get {
if (path== null)
{
return null;
}
return path.corners;
}
}
*/
public UnityEngine.AI.NavMeshPathStatus status
{
get
{
if (path== null)
{
return UnityEngine.AI.NavMeshPathStatus.PathInvalid;
}
return path.status;
}
}
public UnityEngine.AI.NavMeshPath path;
// Use this for initialization
void Start () {
}
void ClearCorners()
{
path.ClearCorners();
}
public string GetStatusString()
{
if (path ==null){
return "n/a";
}else{
return path.status.ToString();
}
}
}