From 6ace48dd43e577572134ddfb430dbfb7b6449b83 Mon Sep 17 00:00:00 2001 From: Nick Date: Wed, 28 Dec 2022 17:02:27 -0500 Subject: [PATCH] Add FacePlayerWhenTalking if it isn't there --- NewHorizons/Builder/Props/DialogueBuilder.cs | 3 ++- NewHorizons/External/Modules/PropModule.cs | 2 ++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/NewHorizons/Builder/Props/DialogueBuilder.cs b/NewHorizons/Builder/Props/DialogueBuilder.cs index 760e7091..2d0c2bbc 100644 --- a/NewHorizons/Builder/Props/DialogueBuilder.cs +++ b/NewHorizons/Builder/Props/DialogueBuilder.cs @@ -213,7 +213,8 @@ namespace NewHorizons.Builder.Props } else { - // TODO: make a custom controller for basic characters to just turn them to face you + // If they have nothing else just put the face player when talking thing on them + character.gameObject.GetAddComponent(); } var facePlayerWhenTalking = character.GetComponent(); diff --git a/NewHorizons/External/Modules/PropModule.cs b/NewHorizons/External/Modules/PropModule.cs index bea44041..3fc44d0c 100644 --- a/NewHorizons/External/Modules/PropModule.cs +++ b/NewHorizons/External/Modules/PropModule.cs @@ -477,6 +477,8 @@ namespace NewHorizons.External.Modules /// /// If this dialogue is meant for a character, this is the relative path from the planet to that character's /// CharacterAnimController, TravelerController, TravelerEyeController (eye of the universe), FacePlayerWhenTalking, or SolanumAnimController. + /// + /// If none of those components are present it will add a FacePlayerWhenTalking component. /// public string pathToAnimController;