C# Класс NodeManager, Corsair

Показать файл Открыть проект Примеры использования класса

Открытые свойства

Свойство Тип Описание
nodes ].Node[
size_x int
size_y int

Открытые методы

Метод Описание
BlockNode ( Vector3 position ) : bool
CorrectInitialPosition ( Vector3 vector ) : Vector3

Corrects the Y position of the Vector3 to layer correctly with the rest of the map. Uses the original Y value of the vector.

CorrectPosition ( Vector3 vector ) : Vector3

Corrects the Y position of the Vector3 to layer correctly with the rest of the map. Does not use the original Y value of the vecotor.

GetClosestNode ( Vector3 location ) : Node

Gets the tile from location.

GetDestinationNode ( ) : Node
GetNodeFromLocation ( Vector3 location ) : Node

Gets the tile from location.

GetSpawnNodes ( ) : Node[]
NodeManager ( ) : System
UnBlockNode ( Vector3 position ) : void

Приватные методы

Метод Описание
BuildNodes ( ) : void
ConnectNodes ( ) : void
MakeNodes ( ) : void
SetGridPosition ( ) : void
SetGridSize ( ) : void

Описание методов

BlockNode() публичный Метод

public BlockNode ( Vector3 position ) : bool
position Vector3
Результат bool

CorrectInitialPosition() публичный Метод

Corrects the Y position of the Vector3 to layer correctly with the rest of the map. Uses the original Y value of the vector.
public CorrectInitialPosition ( Vector3 vector ) : Vector3
vector Vector3 The original position of the object
Результат Vector3

CorrectPosition() публичный Метод

Corrects the Y position of the Vector3 to layer correctly with the rest of the map. Does not use the original Y value of the vecotor.
public CorrectPosition ( Vector3 vector ) : Vector3
vector Vector3 The original position of the object
Результат Vector3

GetClosestNode() публичный Метод

Gets the tile from location.
public GetClosestNode ( Vector3 location ) : Node
location Vector3
Результат Node

GetDestinationNode() публичный Метод

public GetDestinationNode ( ) : Node
Результат Node

GetNodeFromLocation() публичный Метод

Gets the tile from location.
public GetNodeFromLocation ( Vector3 location ) : Node
location Vector3
Результат Node

GetSpawnNodes() публичный Метод

public GetSpawnNodes ( ) : Node[]
Результат Node[]

NodeManager() публичный Метод

public NodeManager ( ) : System
Результат System

UnBlockNode() публичный Метод

public UnBlockNode ( Vector3 position ) : void
position Vector3
Результат void

Описание свойств

nodes публичное свойство

public Node[,] nodes
Результат ].Node[

size_x публичное свойство

public int size_x
Результат int

size_y публичное свойство

public int size_y
Результат int