prevent repeat TriggerOnCollide triggers (#40428)
* prevent repeat TriggerOnCollide triggers * review comment: remove TriggerOnCollide when out of triggers
This commit is contained in:
@@ -20,4 +20,10 @@ public sealed partial class TriggerOnCollideComponent : BaseTriggerOnXComponent
|
||||
/// </summary>
|
||||
[DataField, AutoNetworkedField]
|
||||
public bool IgnoreOtherNonHard = true;
|
||||
|
||||
/// <summary>
|
||||
/// If not null, limits the amount of times this component can trigger.
|
||||
/// </summary>
|
||||
[DataField, AutoNetworkedField]
|
||||
public int? MaxTriggers = null;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user