示例#1
0
    private void OnDestroy()
    {
#if !UNITY_EDITOR
        try
        {
#endif

        State = EffectState.Finished;
        EffectManager.Instance.RemoveEffect(Id);
        ComplexObjectPool.NotifyDestroied(gameObject);

#if !UNITY_EDITOR
    }
    catch (Exception ex)
    {
        Logger.Error(ex.ToString());
    }
#endif
    }