Пример #1
0
 void SpawnEffectAppliedNotification(UnitEffect effect)
 {
     if (!effect.ShowApplyNotification)
     {
         return;
     }
     EventNotification.SpawnEffectNotification(EffectNotifactionPrefab, EffectNotificationsContainer, effect, effect.GetShortHandle() + " applied");
     EnableUnitUI();
 }
Пример #2
0
    void SpawnEffectExpiredNotification(UnitEffect effect)
    {
        if (!effect.ShowRemoveNotification)
        {
            return;
        }

        EventNotification.SpawnEffectNotification(EffectNotifactionPrefab, EffectNotificationsContainer, effect, effect.GetShortHandle() + " removed");
        EnableUnitUI();
    }
Пример #3
0
    void ShowActiveEffects(Unit unit)
    {
        if (unit != m_Unit)
        {
            return;
        }

        List <UnitEffect> effects = unit.GetComponent <Unit_EffectManager>().ActiveEffects;

        if (effects == null)
        {
            return;
        }

        foreach (var effect in effects)
        {
            EventNotification.SpawnEffectNotification(EffectNotifactionPrefab, EffectNotificationsContainer, effect);
        }
    }
Пример #4
0
 void SpawnEffectTickNotification(UnitEffect effect)
 {
     EventNotification.SpawnEffectNotification(EffectNotifactionPrefab, EffectNotificationsContainer, effect);
     EnableUnitUI();
 }