mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-02-19 03:39:50 +00:00
fake sector check
This commit is contained in:
parent
6ccb8c0058
commit
a57c4265ae
@ -91,11 +91,15 @@ public class QSBSectorManager : WorldObjectManager
|
|||||||
|
|
||||||
// time loop spinning ring
|
// time loop spinning ring
|
||||||
{
|
{
|
||||||
|
// NH can remove this
|
||||||
var TimeLoopRing_Body = GameObject.Find("TimeLoopRing_Body");
|
var TimeLoopRing_Body = GameObject.Find("TimeLoopRing_Body");
|
||||||
var Sector_TimeLoopInterior = GameObject.Find("Sector_TimeLoopInterior").GetComponent<Sector>();
|
if (TimeLoopRing_Body)
|
||||||
// use the same trigger as the parent sector
|
{
|
||||||
FakeSector.Create(TimeLoopRing_Body, Sector_TimeLoopInterior,
|
var Sector_TimeLoopInterior = GameObject.Find("Sector_TimeLoopInterior").GetComponent<Sector>();
|
||||||
x => x._triggerRoot = Sector_TimeLoopInterior._triggerRoot);
|
// use the same trigger as the parent sector
|
||||||
|
FakeSector.Create(TimeLoopRing_Body, Sector_TimeLoopInterior,
|
||||||
|
x => x._triggerRoot = Sector_TimeLoopInterior._triggerRoot);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// TH elevators
|
// TH elevators
|
||||||
|
@ -49,8 +49,8 @@ public static class QSBWorldSync
|
|||||||
await UniTask.WaitUntil(() => PlayerTransformSync.LocalInstance, cancellationToken: _cts.Token);
|
await UniTask.WaitUntil(() => PlayerTransformSync.LocalInstance, cancellationToken: _cts.Token);
|
||||||
}
|
}
|
||||||
|
|
||||||
// let nh do things first :)
|
// let NH do things first :)
|
||||||
// makin it nice and long to be safe
|
// makin it nice and long to be safe. dw things still work no matter the delay
|
||||||
await UniTask.DelayFrame(100, cancellationToken: _cts.Token);
|
await UniTask.DelayFrame(100, cancellationToken: _cts.Token);
|
||||||
|
|
||||||
GameInit();
|
GameInit();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user