mirror of
https://github.com/misternebula/quantum-space-buddies.git
synced 2025-01-01 03:32:38 +00:00
sync _fakeDebrisBodies as well, why not
This commit is contained in:
parent
fbb88b5775
commit
8c7d0a98af
@ -15,14 +15,22 @@ namespace QSB.TornadoSync
|
|||||||
QSBWorldSync.GetWorldObjects<QSBTornado>().ForEach(tornado
|
QSBWorldSync.GetWorldObjects<QSBTornado>().ForEach(tornado
|
||||||
=> QSBEventManager.FireEvent(EventNames.QSBTornadoFormState, tornado));
|
=> QSBEventManager.FireEvent(EventNames.QSBTornadoFormState, tornado));
|
||||||
|
|
||||||
|
var gdBody = Locator._giantsDeep.GetOWRigidbody();
|
||||||
// cannon
|
// cannon
|
||||||
var cannon = Locator._orbitalProbeCannon.GetRequiredComponent<OrbitalProbeLaunchController>();
|
var cannon = Locator._orbitalProbeCannon.GetRequiredComponent<OrbitalProbeLaunchController>();
|
||||||
var gdBody = Locator._giantsDeep.GetOWRigidbody();
|
|
||||||
QSBEventManager.FireEvent(EventNames.QSBBodyResync, cannon.GetAttachedOWRigidbody(), gdBody);
|
QSBEventManager.FireEvent(EventNames.QSBBodyResync, cannon.GetAttachedOWRigidbody(), gdBody);
|
||||||
foreach (var proxy in cannon._realDebrisSectorProxies)
|
foreach (var fake in cannon._fakeDebrisBodies)
|
||||||
|
{
|
||||||
|
if (fake)
|
||||||
|
{
|
||||||
|
QSBEventManager.FireEvent(EventNames.QSBBodyResync,
|
||||||
|
fake.GetAttachedOWRigidbody(), gdBody);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
foreach (var real in cannon._realDebrisSectorProxies)
|
||||||
{
|
{
|
||||||
QSBEventManager.FireEvent(EventNames.QSBBodyResync,
|
QSBEventManager.FireEvent(EventNames.QSBBodyResync,
|
||||||
proxy.transform.root.GetAttachedOWRigidbody(), gdBody);
|
real.transform.root.GetAttachedOWRigidbody(), gdBody);
|
||||||
}
|
}
|
||||||
QSBEventManager.FireEvent(EventNames.QSBBodyResync, cannon._probeBody, gdBody);
|
QSBEventManager.FireEvent(EventNames.QSBBodyResync, cannon._probeBody, gdBody);
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user