Add FacePlayerWhenTalking if it isn't there

This commit is contained in:
Nick 2022-12-28 17:02:27 -05:00
parent ea7d04da52
commit 6ace48dd43
2 changed files with 4 additions and 1 deletions

View File

@ -213,7 +213,8 @@ namespace NewHorizons.Builder.Props
} }
else 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<FacePlayerWhenTalking>();
} }
var facePlayerWhenTalking = character.GetComponent<FacePlayerWhenTalking>(); var facePlayerWhenTalking = character.GetComponent<FacePlayerWhenTalking>();

View File

@ -477,6 +477,8 @@ namespace NewHorizons.External.Modules
/// <summary> /// <summary>
/// If this dialogue is meant for a character, this is the relative path from the planet to that character's /// 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. /// CharacterAnimController, TravelerController, TravelerEyeController (eye of the universe), FacePlayerWhenTalking, or SolanumAnimController.
///
/// If none of those components are present it will add a FacePlayerWhenTalking component.
/// </summary> /// </summary>
public string pathToAnimController; public string pathToAnimController;