public async void Unjail(JailCase jailCase) { Atlas.DetachTickHandler(OnTick); if (jailCase.HasEscaped) { return; } API.DoScreenFadeOut(0); await Cache.Entity.Teleport(ReleasePosition); await BaseScript.Delay(3000); API.DoScreenFadeIn(5000); LastJailCase = null; }
public void Hide() { Atlas.DetachTickHandler(OnTick); }