Esempio n. 1
0
 void SpawnEffectAppliedNotification(UnitEffect effect)
 {
     if (!effect.ShowApplyNotification)
     {
         return;
     }
     EventNotification.SpawnEffectNotification(EffectNotifactionPrefab, EffectNotificationsContainer, effect, effect.GetShortHandle() + " applied");
     EnableUnitUI();
 }
Esempio n. 2
0
    void SpawnEffectExpiredNotification(UnitEffect effect)
    {
        if (!effect.ShowRemoveNotification)
        {
            return;
        }

        EventNotification.SpawnEffectNotification(EffectNotifactionPrefab, EffectNotificationsContainer, effect, effect.GetShortHandle() + " removed");
        EnableUnitUI();
    }
Esempio n. 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);
        }
    }
Esempio n. 4
0
 void SpawnEffectTickNotification(UnitEffect effect)
 {
     EventNotification.SpawnEffectNotification(EffectNotifactionPrefab, EffectNotificationsContainer, effect);
     EnableUnitUI();
 }