Revert "I HATE JELLYFISH"

This reverts commit 4e9fe0616d.
This commit is contained in:
JohnCorby 2022-08-09 17:35:00 -07:00
parent df58799656
commit c9c0753486
2 changed files with 1 additions and 17 deletions

View File

@ -84,7 +84,6 @@ public class JellyfishTransformSync : UnsectoredRigidbodySync, ILinkedNetworkBeh
AttachedRigidbody.SetRotation(ReferenceTransform.FromRelRot(transform.rotation));
AttachedRigidbody.SetVelocity(ReferenceRigidbody.FromRelVel(Velocity, pos));
AttachedRigidbody.SetAngularVelocity(ReferenceRigidbody.FromRelAngVel(AngularVelocity));
DebugLog.DebugWrite($"{this} APPLY TO ATTACHED");
}
protected override void OnRenderObject()

View File

@ -1,27 +1,13 @@
using Cysharp.Threading.Tasks;
using QSB.JellyfishSync.Messages;
using QSB.JellyfishSync.Messages;
using QSB.JellyfishSync.TransformSync;
using QSB.Messaging;
using QSB.Utility;
using QSB.Utility.LinkedWorldObject;
using System.Threading;
using UnityEngine;
namespace QSB.JellyfishSync.WorldObjects;
public class QSBJellyfish : LinkedWorldObject<JellyfishController, JellyfishTransformSync>
{
public override async UniTask Init(CancellationToken ct)
{
await base.Init(ct);
if (QSBCore.IsHost)
{
AttachedObject._upwardsAcceleration *= 10;
AttachedObject._downwardsAcceleration *= 10;
}
}
public override bool ShouldDisplayDebug() => false;
protected override GameObject NetworkObjectPrefab => QSBNetworkManager.singleton.JellyfishPrefab;
@ -39,6 +25,5 @@ public class QSBJellyfish : LinkedWorldObject<JellyfishController, JellyfishTran
AttachedObject._isRising = value;
AttachedObject._attractiveFluidVolume.SetVolumeActivation(!value);
DebugLog.DebugWrite($"{this} SET IS RISING");
}
}