/// <summary> /// Called when this effect is deactivated. /// </summary> public void Deactivate() { CachedTransform.SetParent(null); CachedGameObject.SetActive(false); if (OnDeactivate.IsNotNull()) { OnDeactivate(); } }
/// <summary> /// Called when this effect is deactivated. Perform resets here. /// </summary> internal void Deactivate() { if (CachedShuriken != null) { CachedShuriken.Stop(); } CachedTransform.SetParent(null); CachedGameObject.SetActive(false); if (OnDeactivate.IsNotNull()) { OnDeactivate(); } }