void SpawnEffectAppliedNotification(UnitEffect effect) { if (!effect.ShowApplyNotification) { return; } EventNotification.SpawnEffectNotification(EffectNotifactionPrefab, EffectNotificationsContainer, effect, effect.GetShortHandle() + " applied"); EnableUnitUI(); }
void SpawnEffectExpiredNotification(UnitEffect effect) { if (!effect.ShowRemoveNotification) { return; } EventNotification.SpawnEffectNotification(EffectNotifactionPrefab, EffectNotificationsContainer, effect, effect.GetShortHandle() + " removed"); EnableUnitUI(); }
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); } }
void SpawnEffectTickNotification(UnitEffect effect) { EventNotification.SpawnEffectNotification(EffectNotifactionPrefab, EffectNotificationsContainer, effect); EnableUnitUI(); }