@@ -4,7 +4,6 @@ using UnityEngine;
|
||||
|
||||
public class AdventurerInteractable : MonoBehaviour
|
||||
{
|
||||
public DialogueController dialogueController;
|
||||
public int m_spawnQuestID = 0;
|
||||
|
||||
[SerializeField] private string m_name = string.Empty;
|
||||
@@ -24,6 +23,6 @@ public class AdventurerInteractable : MonoBehaviour
|
||||
{
|
||||
PlayerController.Instance.cameraMovement = false;
|
||||
CharacterData character = CharacterManager.Instance.GetCharacterDataByName(m_name);
|
||||
dialogueController.DisplayCharacterText(character);
|
||||
GameManager.Instance.dialogueController.DisplayCharacterText(character);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -14,7 +14,7 @@ public class BillboardBehaviour : MonoBehaviour
|
||||
// Update is called once per frame
|
||||
void Update()
|
||||
{
|
||||
transform.LookAt(Camera.main.transform.position);
|
||||
transform.rotation = Quaternion.LookRotation(transform.position - Camera.main.transform.position);
|
||||
transform.rotation = Quaternion.Euler(new Vector3(initialRotation.x, transform.rotation.eulerAngles.y, initialRotation.z));
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user