private void OnHide() { // OnHide if (!LinkedStatus.IsHidden) { LinkedStatus.IsHidden = true; LinkedStatus.DisplayInHud = false; LinkedStatus.FxTransform?.gameObject.SetActive(false); if (LinkedVFX) { LinkedVFX.Stop(); } } }
private void OnShow() { if (LinkedStatus.IsHidden) { LinkedStatus.IsHidden = false; LinkedStatus.DisplayInHud = true; if ((bool)ProtectionBubbleMod.config.GetValue(Settings.ShowFX) && LinkedVFX) { LinkedVFX.gameObject.SetActive(true); LinkedVFX.transform.localPosition = Vector3.down; LinkedVFX.Play(this.OwnerCharacter, null); } } }