npc talk to nearby players
This commit is contained in:
15
Jump Game/Assets/Scripts/InteractionObject.cs
Normal file
15
Jump Game/Assets/Scripts/InteractionObject.cs
Normal file
@@ -0,0 +1,15 @@
|
||||
using System.Collections;
|
||||
using System.Collections.Generic;
|
||||
using UnityEngine;
|
||||
|
||||
public class InteractionObject : MonoBehaviour
|
||||
{
|
||||
public bool talks;
|
||||
public string message;
|
||||
public void Talk()
|
||||
{
|
||||
Debug.Log(message);
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user