Class HighlightPointsInRangeGridBehaviour
public class HighlightPointsInRangeGridBehaviour : GridBehaviour<RectPoint>
- Inheritance
-
HighlightPointsInRangeGridBehaviour
- Inherited Members
-
MonoBehaviour.IsInvoking()MonoBehaviour.StopCoroutine(Coroutine)MonoBehaviour.StopAllCoroutines()MonoBehaviour.runInEditModeComponent.GetComponent<T>()Component.GetComponentInChildren<T>()Component.GetComponentsInChildren<T>()Component.GetComponentsInParent<T>()Component.transformComponent.gameObjectComponent.tagObject.Instantiate(Object, Vector3, Quaternion)Object.Instantiate(Object)Object.Instantiate(Object, Transform)Object.Instantiate<T>(T, Vector3, Quaternion, Transform)Object.Instantiate<T>(T, Transform)Object.Destroy(Object)Object.DestroyImmediate(Object)Object.DestroyObject(Object)Object.FindObjectsOfType<T>()Object.nameObject.hideFlags
- Extension Methods
Fields
cellDistanceColor
public Gradient cellDistanceColor
Field Value
cellMovementCostColor
public Gradient cellMovementCostColor
Field Value
obstacleColor
public Color obstacleColor
Field Value
pathMode
public PathMode pathMode
Field Value
pathPrefab
public SpriteCell pathPrefab
Field Value
pathRoot
public GameObject pathRoot
Field Value
range
public float range
Field Value
Methods
GetEuclideanPath()
public Dictionary<RectPoint, float> GetEuclideanPath()
Returns
GetGridPath()
public Dictionary<RectPoint, float> GetGridPath()
Returns
GetWeightedPath()
public Dictionary<RectPoint, float> GetWeightedPath()
Returns
InitGrid()
When this behaviour is attached to a grid builder, this method is called once the grid is created, and all cells(tiles) have been instantiated.
Override this to implement custom initialisation code. (You can access the grid through the Grid property).
public override void InitGrid()
OnLeftClick(RectPoint)
public void OnLeftClick(RectPoint clickedPoint)
Parameters
clickedPoint
RectPoint
OnRightClick(RectPoint)
public void OnRightClick(RectPoint clickedPoint)
Parameters
clickedPoint
RectPoint
Update()
public void Update()