public override void OnEnd() { base.OnEnd(); if (EnableDisableCollision != null) { EnableDisableCollision.Destroy(); EnableDisableCollision = null; CollisionTextRenderer.Destroy(); CollisionTextRenderer = null; } }
public override void OnEnd() { base.OnEnd(); foreach (var playerId in InvisiblePlayers) { var player = PlayerController.FromPlayerId(playerId); player.SetOpacity(1); player.IsVisible = true; } InvisiblePlayers.Clear(); if (EnableDisableInvisibility != null) { EnableDisableInvisibility.Destroy(); EnableDisableInvisibility = null; InvisibilityTextRenderer.Destroy(); InvisibilityTextRenderer = null; } }