mirror of
https://github.com/Outer-Wilds-New-Horizons/new-horizons.git
synced 2025-12-11 20:15:44 +01:00
Fixed angler animation events disconnecting for added fish
This commit is contained in:
parent
3bfd688e57
commit
fdac1dd6e6
@ -363,7 +363,7 @@ namespace NewHorizons.Builder.Props
|
|||||||
else if(component is Shape shape) shape.enabled = true;
|
else if(component is Shape shape) shape.enabled = true;
|
||||||
|
|
||||||
// If it's not a moving anglerfish make sure the anim controller is regular
|
// If it's not a moving anglerfish make sure the anim controller is regular
|
||||||
else if(component is AnglerfishAnimController && component.GetComponentInParent<AnglerfishController>() == null)
|
else if(component is AnglerfishAnimController && component.transform.parent.GetComponent<AnglerfishController>() == null) //Manual parent chain so we can find inactive
|
||||||
{
|
{
|
||||||
component.gameObject.AddComponent<AnglerAnimFixer>();
|
component.gameObject.AddComponent<AnglerAnimFixer>();
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user