本文整理汇总了C#中Building.getY方法的典型用法代码示例。如果您正苦于以下问题:C# Building.getY方法的具体用法?C# Building.getY怎么用?C# Building.getY使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Building
的用法示例。
在下文中一共展示了Building.getY方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: StoredBuilding
public StoredBuilding(Building b)
{
this.buildingType = b.buildingType;
this.x = b.getX ();
this.y = b.getY ();
this.rotation = b.rotation;
this.lastCollection = b.lastCollection;
}
示例2: deleteBuilding
public void deleteBuilding(GameObject building, Building buildingScript)
{
//Delete the building from the list
buildingManager.removeBuilding (buildingScript);
//Mark the ground as available
int buildingX = buildingScript.getX ();
int buildingY = buildingScript.getY ();
for (int x = 0; x < buildingScript.size.x/squareSize.x; x++) {
for (int y = 0; y < buildingScript.size.y/squareSize.y; y++) {
grid[x+buildingX,y+buildingY] = false;
highlightGrid[x+buildingX, y+buildingY].renderer.material = greenMat;
}
}
//Delete the gameobject
Destroy (building);
}