mirror of
https://github.com/NotAKidoS/NAK_CVR_Mods.git
synced 2025-09-02 06:19:22 +00:00
[PropLoadingHexagon] Fixed The Clapper integration
This commit is contained in:
parent
16e6d784f9
commit
29ae509a5b
1 changed files with 2 additions and 2 deletions
|
@ -28,9 +28,9 @@ public class ClappableLoadingHex : Kafe.TheClapper.Clappable
|
||||||
|
|
||||||
public static void Create(LoadingHexagonController loadingHexagon)
|
public static void Create(LoadingHexagonController loadingHexagon)
|
||||||
{
|
{
|
||||||
GameObject target = loadingHexagon.gameObject;
|
GameObject target = loadingHexagon.transform.GetChild(0).gameObject;
|
||||||
if (!target.gameObject.TryGetComponent(out ClappableLoadingHex clappableHexagon))
|
if (!target.gameObject.TryGetComponent(out ClappableLoadingHex clappableHexagon))
|
||||||
clappableHexagon = target.gameObject.AddComponent<ClappableLoadingHex>();
|
clappableHexagon = target.AddComponent<ClappableLoadingHex>();
|
||||||
clappableHexagon._loadingHexagon = loadingHexagon;
|
clappableHexagon._loadingHexagon = loadingHexagon;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue