/// <summary> /// 移除连线特效 /// </summary> private void RemoveLineEffect() { if (m_LineFxInstance != null) { VFXController vfxController = m_LineFxInstance.GetEffectObject(); Animator animator = vfxController.GetComponentInChildren <Animator>(); if (animator) { animator.SetTrigger("dissolve"); } } }
/// <summary> /// 改变隐身特效状态 /// </summary> private void ChangeHideEffectState() { VFXController vfxController = m_HideFxInstance.GetEffectObject(); Animator animator = vfxController.GetComponentInChildren <Animator>(); if (animator) { animator.SetTrigger("Materialized"); } if (m_EnergyBodyFxInstance) { StopEnergyEffect(); } }