Example #1
0
        private float GetAwarenessRateChangeForType(AttentionType type)
        {
            var info   = attentionTypeAwarenessData.data.FirstOrDefault(d => d.attentionType == type);
            var change = info?.awarenessRateChange;

            return(change.GetValueOrDefault());
        }
Example #2
0
 public void DeregisterAwarenessType(AttentionType type)
 {
     currentAwarenessRate = currentAwarenessRate.ClampedAdd(-GetAwarenessRateChangeForType(type), 0, 1);
 }