示例#1
0
        private void OnTriggerExit(Collider other)
        {
            EffectArea ea = other.GetComponentInChildren <EffectArea>();

            if (ea != null && ea.enabled && ea.areaEffect != null)
            {
                lastArea = ea;
                if (ea.removeOnExit)
                {
                    RemoveEffect(ea.areaEffect);
                }
                StartCoroutine("EndAreaEffect");
            }
        }
示例#2
0
        private IEnumerator EndAreaEffect()
        {
            yield return(new WaitForEndOfFrame());

            lastArea = null;
        }