Nextrek
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
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
|
/*
*
* Adventure Creator
* by Chris Burton, 2013-2014
*
* "NavigationEngine.cs"
*
* This script is a base class for the Navigation method scripts.
* Create a subclass of name "NavigationEngine_NewMethodName" and
* add "NewMethodName" to the AC_NavigationMethod enum to integrate
* a new method into the engine.
*
*/
using UnityEngine;
using System.Collections;
using System.Collections.Generic;
public class NavigationEngine : ScriptableObject
{
public virtual void Awake ()
{ }
public virtual Vector3[] GetPointsArray (Vector3 startPosition, Vector3 targetPosition)
{
List <Vector3> pointsList = new List<Vector3>();
pointsList.Add (targetPosition);
return pointsList.ToArray ();
}
public virtual string GetPrefabName ()
{
return "";
}
public virtual void SetVisibility (bool visibility)
{ }
public virtual void SceneSettingsGUI ()
{
#if UNITY_EDITOR
#endif
}
}
|
Revision |
Author |
Commited |
Message |
83
|
FMMortaroli
|
Tue 13 May, 2014 11:32:51 +0000 |
|