started building out level
Signed-off-by: sdqhome\caleb <caleb@sdqhome.co.uk>
This commit is contained in:
@@ -13,11 +13,20 @@ public enum NPCType
|
||||
Trainer
|
||||
}
|
||||
|
||||
public enum NPCRelationship
|
||||
{
|
||||
Hostile,
|
||||
Neutral,
|
||||
Friendly
|
||||
}
|
||||
|
||||
public enum NPCState
|
||||
{
|
||||
Idle,
|
||||
Wandering,
|
||||
Talking
|
||||
Talking,
|
||||
Attacking,
|
||||
Dead
|
||||
}
|
||||
|
||||
public enum DialogueBehavior
|
||||
@@ -37,9 +46,22 @@ public class NPC : MonoBehaviour, IInteractable
|
||||
|
||||
[Header("NPC Configuration")]
|
||||
[SerializeField] private NPCType npcType = NPCType.Villager;
|
||||
[SerializeField] private NPCRelationship relationship = NPCRelationship.Neutral;
|
||||
[SerializeField] private NPCState currentState = NPCState.Idle;
|
||||
[SerializeField] private float interactionRadius = 2.5f;
|
||||
|
||||
public NPCRelationship Relationship
|
||||
{
|
||||
get => relationship;
|
||||
set => relationship = value;
|
||||
}
|
||||
|
||||
public NPCState CurrentState
|
||||
{
|
||||
get => currentState;
|
||||
set => currentState = value;
|
||||
}
|
||||
|
||||
[Header("Dialogue Settings")]
|
||||
[SerializeField] private DialogueBehavior dialogueType = DialogueBehavior.Sequential;
|
||||
[TextArea(2, 5)]
|
||||
|
||||
Reference in New Issue
Block a user