浏览代码

Disable Interaction prompt when Dialogue

/main
uChema 3 年前
当前提交
0299119f
共有 1 个文件被更改,包括 10 次插入2 次删除
  1. 12
      UOP1_Project/Assets/Scripts/UI/UIManager.cs

12
UOP1_Project/Assets/Scripts/UI/UIManager.cs


void OpenUIDialogue(LocalizedString dialogueLine, ActorSO actor)
{
Debug.Log("OpenUIDialogue");
_interactionPanel.gameObject.SetActive(false);
_dialogueController.gameObject.SetActive(true);
}
void CloseUIDialogue(int dialogueType)

_onInteractionEndedEvent.RaiseEvent();
}
private void OnDestroy()

if (_gameStateManager.CurrentGameState == GameState.Gameplay)
{
isForCooking = true;
_interactionPanel.gameObject.SetActive(false);
OpenInventoryScreen();
}

void SetInteractionPanel(bool isOpenEvent, InteractionType interactionType)
{
if (_gameStateManager.CurrentGameState == GameState.Gameplay)
if (_gameStateManager.CurrentGameState != GameState.Combat)
}
else if (!isOpenEvent)
{
_interactionPanel.gameObject.SetActive(isOpenEvent);
}
}

正在加载...
取消
保存