本文整理汇总了C#中Block.Bisect方法的典型用法代码示例。如果您正苦于以下问题:C# Block.Bisect方法的具体用法?C# Block.Bisect怎么用?C# Block.Bisect使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Block
的用法示例。
在下文中一共展示了Block.Bisect方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: Update
void Update()
{
if (Input.GetKeyUp(KeyCode.B))
{
AddBuildings();
CityMapManager.Instance.DrawRoads();
CityMapManager.Instance.DrawSidewalks();
CityMapManager.Instance.DrawLots();
}
if (Input.GetKeyUp(KeyCode.R))
{
BuildingManager.Instance.DestroyBuildings();
block = new Block();
block.Bisect();
}
if (Input.GetKeyUp(KeyCode.G))
_drawGizmos = !_drawGizmos;
if (Input.GetKeyUp(KeyCode.Alpha1))
_drawFirstBlock = !_drawFirstBlock;
if (Input.GetKeyUp(KeyCode.Alpha2))
_drawBlocks = !_drawBlocks;
if (Input.GetKeyUp(KeyCode.Alpha3))
_drawSideWalk = !_drawSideWalk;
if (Input.GetKeyUp(KeyCode.Alpha4))
_drawFirstLot = !_drawFirstLot;
if (Input.GetKeyUp(KeyCode.Alpha5))
_drawLots = !_drawLots;
if (Input.GetKeyUp(KeyCode.Alpha0))
{
_drawFirstBlock = false;
_drawBlocks = false;
_drawSideWalk = false;
_drawFirstLot = false;
_drawLots = false;
}
}
示例2: Start
void Start()
{
block = new Block();
block.Bisect();
}