예제 #1
0
        public override bool Success()
        {
            var te = AchievementStateComponent.Instance?.TriggerEvents;

            return(te != null && te.TryGetValue(PREFIX + type.ToString(), out bool
                                                overloaded) && overloaded);
        }
예제 #2
0
 /// <summary>
 /// Triggered when a wire overloads.
 /// </summary>
 /// <param name="rating">The rating of the overloaded wire.</param>
 public static void OnOverload(Wire.WattageRating rating)
 {
     Trigger(OverloadWire.PREFIX + rating.ToString());
 }