C# Class Grid

Inheritance: MonoBehaviour
ファイルを表示 Open project: drakelinglabs/unityarmada Class Usage Examples

Public Properties

Property Type Description
displayGridGizmos bool
gridWorldSize Vector2
nodeRadius float
unwalkableMask LayerMask

Public Methods

Method Description
Awake ( ) : void
CreateGrid ( ) : void
GetNeighbours ( Node node ) : List
NodeFromWorldPoint ( Vector2 worldPosition ) : Node
OnDrawGizmos ( ) : void

Method Details

Awake() public method

public Awake ( ) : void
return void

CreateGrid() public method

public CreateGrid ( ) : void
return void

GetNeighbours() public method

public GetNeighbours ( Node node ) : List
node Node
return List

NodeFromWorldPoint() public method

public NodeFromWorldPoint ( Vector2 worldPosition ) : Node
worldPosition Vector2
return Node

OnDrawGizmos() public method

public OnDrawGizmos ( ) : void
return void

Property Details

displayGridGizmos public_oe property

public bool displayGridGizmos
return bool

gridWorldSize public_oe property

public Vector2 gridWorldSize
return Vector2

nodeRadius public_oe property

public float nodeRadius
return float

unwalkableMask public_oe property

public LayerMask unwalkableMask
return LayerMask