Example #1
0
        public void Refresh()
        {
            if (m_Owner.IsDead)
            {
                return;
            }

            EffectBase effect = GameEntry.Entity.GetEntity(m_EntityId)?.Logic as EffectBase;

            effect?.Reset();

            m_StartTimer = Time.realtimeSinceStartup;
        }
Example #2
0
        public void Exit()
        {
            float size = Data.ChangeModelScale;

            if (size > 0)
            {
                m_Owner.CachedTransform.DOScale(size, 1);
            }

            EffectBase effect = GameEntry.Entity.GetEntity(m_EntityId)?.Logic as EffectBase;

            effect?.Clear();
        }