浏览代码

[Bot] Automated dotnet-format update

/main
Chema Damak 4 年前
当前提交
9e43c174
共有 4 个文件被更改,包括 11 次插入9 次删除
  1. 2
      UOP1_Project/Assets/Scripts/Dialogues/DialogueManager.cs
  2. 2
      UOP1_Project/Assets/Scripts/Localization/LocalizeSceneNameFromSO.cs
  3. 9
      UOP1_Project/Assets/Scripts/UI/DialogueUIController.cs
  4. 7
      UOP1_Project/Assets/Scripts/UI/UIManager.cs

2
UOP1_Project/Assets/Scripts/Dialogues/DialogueManager.cs


{
//TODO: Interface with a UIManager to allow displayal of the line of dialogue in the UI
//Debug.Log("A line of dialogue has been spoken: \"" + dialogueLine.Sentence + "\" by " + dialogueLine.Actor.ActorName);
UIManager.Instance.OpenUIDialogue(dialogueLine);
UIManager.Instance.OpenUIDialogue(dialogueLine);
}
}

2
UOP1_Project/Assets/Scripts/Localization/LocalizeSceneNameFromSO.cs


private void Start()
{
localizationEvent.StringReference = SO.locationName;
localizationEvent.StringReference = SO.locationName;
}

9
UOP1_Project/Assets/Scripts/UI/DialogueUIController.cs


using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
using TMPro;
public class DialogueUIController : MonoBehaviour
{

[SerializeField]
TextMeshProUGUI actorNameText;
public void SetDialogue(DialogueLineSO dialogueLine) {
public void SetDialogue(DialogueLineSO dialogueLine)
{
actorNameText.text = dialogueLine.Actor.ActorName;
actorNameText.text = dialogueLine.Actor.ActorName;
}

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


private void Start()
{
Instance = this;
CloseUIDialogue();
CloseUIDialogue();
public void OpenUIDialogue(DialogueLineSO dialogueLine) {
public void OpenUIDialogue(DialogueLineSO dialogueLine)
{
dialogueController.SetDialogue( dialogueLine);
dialogueController.SetDialogue(dialogueLine);
}
public void CloseUIDialogue()

正在加载...
取消
保存