Revert "JoinLeaveSingularity: also cancel task if transform sync or player body gets destroyed"

This reverts commit e125258fdeb7da74eaa92917871b2ee2cfc99dcd.
This commit is contained in:
JohnCorby 2022-04-03 13:08:01 -07:00
parent e125258fde
commit 67f390a7ef

View File

@ -34,11 +34,7 @@ public static class JoinLeaveSingularity
}
var go = new GameObject($"player {player} JoinLeaveSingularity");
var ct = CancellationTokenSource.CreateLinkedTokenSource(
go.GetCancellationTokenOnDestroy(),
player.TransformSync.GetCancellationTokenOnDestroy(),
player.Body.GetCancellationTokenOnDestroy()
).Token;
var ct = go.GetCancellationTokenOnDestroy();
UniTask.Create(async () =>
{
DebugLog.DebugWrite($"{go.name}: WARP TASK");