C# Class BaseTile, PocketGodsRPG_Proto

Inheritance: MonoBehaviour
ファイルを表示 Open project: pocket-playlab/PocketGodsRPG_Proto Class Usage Examples

Public Methods

Method Description
GetGrid ( ) : int[]

Gets the grid. 0 index for X-coord. 1 index for Y-coord

GetGridX ( ) : int
GetGridY ( ) : int
GetRealWorldCoordinates ( ) : Vector3

Returns the real world coordinates

GetTileScale ( ) : float
IsOccupied ( ) : bool
MarkAsOccupied ( ) : void
SetTileSize ( float scale ) : void

Sets a new uniform scale for the tile

Method Details

GetGrid() public method

Gets the grid. 0 index for X-coord. 1 index for Y-coord
public GetGrid ( ) : int[]
return int[]

GetGridX() public method

public GetGridX ( ) : int
return int

GetGridY() public method

public GetGridY ( ) : int
return int

GetRealWorldCoordinates() public method

Returns the real world coordinates
public GetRealWorldCoordinates ( ) : Vector3
return Vector3

GetTileScale() public method

public GetTileScale ( ) : float
return float

IsOccupied() public method

public IsOccupied ( ) : bool
return bool

MarkAsOccupied() public method

public MarkAsOccupied ( ) : void
return void

SetTileSize() public method

Sets a new uniform scale for the tile
public SetTileSize ( float scale ) : void
scale float Scale.
return void