本文整理匯總了C#中AC.MatchLookInteraction方法的典型用法代碼示例。如果您正苦於以下問題:C# AC.MatchLookInteraction方法的具體用法?C# AC.MatchLookInteraction怎麽用?C# AC.MatchLookInteraction使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類AC
的用法示例。
在下文中一共展示了AC.MatchLookInteraction方法的1個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的C#代碼示例。
示例1: UpdateMenu
//.........這裏部分代碼省略.........
}
}
else
{
menu.TurnOff (true);
}
}
}
catch
{
if (KickStarter.settingsManager.inputMethod != InputMethod.TouchScreen)
{
Debug.LogWarning ("No '" + menu.toggleKey + "' button exists - please define one in the Input Manager.");
}
}
}
else if (menu.appearType == AppearType.OnHotspot)
{
if (KickStarter.settingsManager.interactionMethod == AC_InteractionMethod.ContextSensitive && !menu.isLocked && KickStarter.runtimeInventory.selectedItem == null)
{
Hotspot hotspot = KickStarter.playerInteraction.GetActiveHotspot ();
if (hotspot != null)
{
menu.HideInteractions ();
if (hotspot.HasContextUse ())
{
menu.MatchUseInteraction (hotspot.GetFirstUseButton ());
}
if (hotspot.HasContextLook ())
{
menu.MatchLookInteraction (hotspot.lookButton);
}
menu.Recalculate ();
}
}
if (hotspotLabel != "" && !menu.isLocked && KickStarter.stateHandler.gameState != GameState.Cutscene)
//(KickStarter.stateHandler.gameState == GameState.Normal || KickStarter.stateHandler.gameState == GameState.DialogOptions))
{
if (!menu.IsOn ())
{
menu.TurnOn (true);
if (menu.IsUnityUI ())
{
// Update position before next frame (Unity UI bug)
UpdateMenuPosition (menu, invertedMouse);
}
}
}
//else if (KickStarter.stateHandler.gameState == GameState.Paused)
else if (KickStarter.stateHandler.gameState == GameState.Cutscene)
{
menu.ForceOff ();
}
else
{
menu.TurnOff (true);
}
}
else if (menu.appearType == AppearType.OnInteraction)
{