uChema 4 年前
当前提交
c1d386ae
共有 2 个文件被更改,包括 5 次插入5 次删除
  1. 6
      UOP1_Project/Assets/Scripts/UI/UIDialogueChoiceFiller.cs
  2. 4
      UOP1_Project/Assets/Scripts/UI/UIDialogueChoicesManager.cs

6
UOP1_Project/Assets/Scripts/UI/UIDialogueChoiceFiller.cs


[SerializeField] private LocalizeStringEvent _choiceText = default;
[SerializeField] private DialogueChoiceChannelSO _makeAChoiceEvent = default;
[SerializeField] private Button _actionButton = default;
[SerializeField] private Button _actionButton = default;
Choice currentChoice;

}
public void SetSelected()
{
if(_actionButton != null)
_actionButton.Select();
if (_actionButton != null)
_actionButton.Select();
}
}

4
UOP1_Project/Assets/Scripts/UI/UIDialogueChoicesManager.cs


}
}
if(choices.Count> 0)
if (choices.Count > 0)
listChoiceButtons[0].SetSelected();
listChoiceButtons[0].SetSelected();
}

正在加载...
取消
保存