本文整理汇总了C#中Tile.HideBottomLine方法的典型用法代码示例。如果您正苦于以下问题:C# Tile.HideBottomLine方法的具体用法?C# Tile.HideBottomLine怎么用?C# Tile.HideBottomLine使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Tile
的用法示例。
在下文中一共展示了Tile.HideBottomLine方法的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: ConnectFromBelow
void ConnectFromBelow(Tile newParent)
{
if (hasSingleParent)
{
if (leftParent != null)
{
Debug.LogError("left parent not null");
}
Debug.Log("Connecting single parent");
leftParent = newParent;
leftParent.child = this;
transform.position = newParent.transform.position + transform.up * (-1.0f * transform.localScale.y + -snapMargin);
AttachLeftLine( transform.up * 1.0f);
}
else
{
if (leftParent != null || rightParent != null)
{
Debug.LogError("Both parents not null on two parent tile being dragged");
}
if (newParent.transform.position.x < transform.position.x)
{
ConnectLeftFromBelow(newParent);
}
else
{
ConnectRightFromBelow(newParent);
}
}
newParent.HideBottomLine();
}
示例2: ConnectFromAbove
void ConnectFromAbove(Tile newParent)
{
if (hasSingleParent)
{
if (leftParent != null)
{
Debug.LogError("left parent not null");
}
Debug.Log("Connecting single parent");
leftParent = newParent;
leftParent.child = this;
newParent.transform.position = transform.position + transform.up * (1.0f * transform.localScale.y + snapMargin);
AttachLeftLine( transform.up * 1.0f);
}
else
{
if (leftParent == null && rightParent != null)
{
ConnectLeftFromAbove(newParent);
}
else if (rightParent == null && leftParent != null)
{
ConnectRightFromAbove(newParent);
}
else if (leftParent == null && rightParent == null)
{
if (newParent.transform.position.x < transform.position.x)
{
ConnectLeftFromAbove(newParent);
}
else
{
ConnectRightFromAbove(newParent);
}
}
else
{
Debug.LogError("Neither parent null");
}
}
newParent.HideBottomLine();
}