private void RunPickupAnimation(PickupAnimationMessage msg) { if (!Owner.EntityManager.TryGetEntity(msg.EntityUid, out var entity)) { return; } if (!IoCManager.Resolve <IGameTiming>().IsFirstTimePredicted) { return; } ReusableAnimations.AnimateEntityPickup(entity, msg.InitialPosition, msg.PickupDirection); }
private void HandlePickupAnimation(PickupAnimationMessage msg) { if (!msg.EntityUid.IsValid()) { return; } if (!_gameTiming.IsFirstTimePredicted) { return; } ReusableAnimations.AnimateEntityPickup(msg.EntityUid, msg.InitialPosition, msg.FinalPosition, EntityManager); }
private void HandlePickupAnimation(PickupAnimationMessage msg) { if (!EntityManager.TryGetEntity(msg.EntityUid, out var entity)) { return; } if (!_gameTiming.IsFirstTimePredicted) { return; } ReusableAnimations.AnimateEntityPickup(entity, msg.InitialPosition, msg.FinalPosition); }