C# 클래스 NodeManager, Corsair

파일 보기 프로젝트 열기: Final-Parsec/Corsair 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
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