add world map and fast travel
This commit is contained in:
@@ -15,7 +15,11 @@ public class Talkable : Interactable
|
||||
public void Start()
|
||||
{
|
||||
voice = GetComponent<DialogueVoice>();
|
||||
talkIndicator.SetActive(false);
|
||||
|
||||
if (talkIndicator != null)
|
||||
{
|
||||
talkIndicator.SetActive(false);
|
||||
}
|
||||
}
|
||||
|
||||
void DetermineDialogue()
|
||||
@@ -90,17 +94,27 @@ public override void Interact()
|
||||
else
|
||||
GameManager.Instance.DialogueManager.DisplayNextSentence();
|
||||
|
||||
talkIndicator.SetActive(false);
|
||||
if (talkIndicator != null)
|
||||
{
|
||||
talkIndicator.SetActive(false);
|
||||
}
|
||||
}
|
||||
|
||||
public override void MoveInsideRange()
|
||||
{
|
||||
talkIndicator.SetActive(true);
|
||||
if (talkIndicator != null)
|
||||
{
|
||||
talkIndicator.SetActive(true);
|
||||
}
|
||||
}
|
||||
|
||||
public override void MoveOutsideRange()
|
||||
{
|
||||
GameManager.Instance.DialogueManager.EndDialogue();
|
||||
talkIndicator.SetActive(false);
|
||||
|
||||
if (talkIndicator != null)
|
||||
{
|
||||
talkIndicator.SetActive(false);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user