mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Attach dialogue to the character
This commit is contained in:
parent
7ecd664646
commit
85892e5041
@ -1,4 +1,4 @@
|
||||
using NewHorizons.External.Modules;
|
||||
using NewHorizons.External.Modules;
|
||||
using NewHorizons.Handlers;
|
||||
using OWML.Common;
|
||||
using System.Xml;
|
||||
@ -81,6 +81,12 @@ namespace NewHorizons.Builder.Props
|
||||
AddTranslation(xml);
|
||||
|
||||
conversationZone.transform.parent = sector?.transform ?? planetGO.transform;
|
||||
|
||||
if (string.IsNullOrEmpty(info.pathToAnimController))
|
||||
{
|
||||
conversationZone.transform.parent = planetGO.transform.Find(info.pathToAnimController);
|
||||
}
|
||||
|
||||
conversationZone.transform.position = planetGO.transform.TransformPoint(info.position);
|
||||
conversationZone.SetActive(true);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user