本文整理汇总了C#中Thing.Brighten方法的典型用法代码示例。如果您正苦于以下问题:C# Thing.Brighten方法的具体用法?C# Thing.Brighten怎么用?C# Thing.Brighten使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Thing
的用法示例。
在下文中一共展示了Thing.Brighten方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: SwitchGrid
// Erstellen der logischen und sichtbaren Auswahl an "Things" die man nach anklicken eines "Things" zur Verfügung hat --- GETESTET UND FUNKTIONIERT
IEnumerator SwitchGrid(Thing ts1)
{
yield return null;
foreach (Thing t in ThingsInDaGame)
t.Darken();
ts1.Brighten();
if (toSwitch[0].transform.position.x == xCoordinates[0])
{
Debug.LogError("Thing ist ganz links");
foreach (Thing t in ThingsInDaGame)
if (t.transform.position == new Vector3(xCoordinates[1], toSwitch[0].transform.position.y, 0))
t.Brighten();
}
else if (toSwitch[0].transform.position.x == xCoordinates[xCoordinates.Length-1])
{
Debug.LogError("Thing ist ganz rechts");
foreach (Thing t in ThingsInDaGame)
if (t.transform.position == new Vector3(xCoordinates[xCoordinates.Length-2], toSwitch[0].transform.position.y, 0))
t.Brighten();
}
else
{
Debug.LogError("Thing ist in der Mitte. X");
foreach (Thing t in ThingsInDaGame)
if (t.transform.position == new Vector3(toSwitch[0].transform.position.x-0.5f, toSwitch[0].transform.position.y, 0) ||
t.transform.position == new Vector3(toSwitch[0].transform.position.x+0.5f, toSwitch[0].transform.position.y, 0))
t.Brighten();
}
if (toSwitch[0].transform.position.y == yCoordinates[0])
{
Debug.LogError("Thing ist ganz oben");
foreach (Thing t in ThingsInDaGame)
if (t.transform.position == new Vector3(toSwitch[0].transform.position.x, yCoordinates[1], 0))
t.Brighten();
}
else if (toSwitch[0].transform.position.y == yCoordinates[yCoordinates.Length-1])
{
Debug.LogError("Thing ist ganz unten");
foreach (Thing t in ThingsInDaGame)
if (t.transform.position == new Vector3(toSwitch[0].transform.position.x, yCoordinates[yCoordinates.Length-2], 0))
t.Brighten();
}
else
{
Debug.LogError("Thing ist in der Mitte. Y");
foreach (Thing t in ThingsInDaGame)
if (t.transform.position == new Vector3(toSwitch[0].transform.position.x, toSwitch[0].transform.position.y-0.5f, 0) ||
t.transform.position == new Vector3(toSwitch[0].transform.position.x, toSwitch[0].transform.position.y+0.5f, 0))
t.Brighten();
}
}