本文整理汇总了C#中AC.ControlSelected方法的典型用法代码示例。如果您正苦于以下问题:C# AC.ControlSelected方法的具体用法?C# AC.ControlSelected怎么用?C# AC.ControlSelected使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类AC
的用法示例。
在下文中一共展示了AC.ControlSelected方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: UpdateMenu
private void UpdateMenu(AC.Menu menu)
{
Vector2 invertedMouse = KickStarter.playerInput.GetInvertedMouse ();
UpdateMenuPosition (menu, invertedMouse);
menu.HandleTransition ();
if (KickStarter.settingsManager)
{
if (KickStarter.settingsManager.inputMethod == InputMethod.KeyboardOrController && menu.IsEnabled () &&
((KickStarter.stateHandler.gameState == GameState.Paused && menu.pauseWhenEnabled) || (KickStarter.stateHandler.gameState == GameState.DialogOptions && menu.appearType == AppearType.DuringConversation)))
{
KickStarter.playerInput.selected_option = menu.ControlSelected (KickStarter.playerInput.selected_option);
}
}
else
{
Debug.LogWarning ("A settings manager is not present.");
}
if (menu.appearType == AppearType.Manual)
{
if (menu.IsVisible () && !menu.isLocked && menu.IsPointInside (invertedMouse) && !menu.ignoreMouseClicks)
{
foundMouseOverMenu = true;
}
}
else if (menu.appearType == AppearType.DuringGameplay)
{
if (KickStarter.stateHandler.gameState == GameState.Normal && !menu.isLocked)
{
if (menu.IsOff ())
{
menu.TurnOn (true);
}
if (menu.IsOn () && menu.IsPointInside (invertedMouse))
{
foundMouseOverMenu = true;
}
}
else if (KickStarter.stateHandler.gameState == GameState.Paused)
{
menu.TurnOff (true);
}
else if (KickStarter.stateHandler.gameState != GameState.Normal && menu.IsOn () && (KickStarter.actionListManager.AreActionListsRunning () || KickStarter.playerInput.activeConversation != null))
{
menu.TurnOff (true);
}
}
else if (menu.appearType == AppearType.MouseOver)
{
if (KickStarter.stateHandler.gameState == GameState.Normal && !menu.isLocked && menu.IsPointInside (invertedMouse))
{
if (menu.IsOff ())
{
menu.TurnOn (true);
}
if (!menu.ignoreMouseClicks)
{
foundMouseOverMenu = true;
}
}
else if (KickStarter.stateHandler.gameState == GameState.Paused)
{
menu.ForceOff ();
}
else
{
menu.TurnOff (true);
}
}
else if (menu.appearType == AppearType.OnContainer)
{
if (KickStarter.playerInput.activeContainer != null && !menu.isLocked && (KickStarter.stateHandler.gameState == GameState.Normal || (KickStarter.stateHandler.gameState == AC.GameState.Paused && menu.pauseWhenEnabled)))
{
if (menu.IsVisible () && menu.IsPointInside (invertedMouse) && !menu.ignoreMouseClicks)
{
foundMouseOverMenu = true;
}
menu.TurnOn (true);
}
else
{
menu.TurnOff (true);
}
}
else if (menu.appearType == AppearType.DuringConversation)
{
if (KickStarter.playerInput.activeConversation != null && KickStarter.stateHandler.gameState == GameState.DialogOptions)
{
menu.TurnOn (true);
}
else if (KickStarter.stateHandler.gameState == GameState.Paused)
{
//.........这里部分代码省略.........