Add clickable to lava (#14353)
This commit is contained in:
@@ -26,19 +26,19 @@ public sealed class StepTriggerComponent : Component
|
|||||||
/// Whether or not this component will currently try to trigger for entities.
|
/// Whether or not this component will currently try to trigger for entities.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField("active")]
|
[DataField("active")]
|
||||||
public bool Active { get; set; } = true;
|
public bool Active = true;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Ratio of shape intersection for a trigger to occur.
|
/// Ratio of shape intersection for a trigger to occur.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField("intersectRatio")]
|
[DataField("intersectRatio")]
|
||||||
public float IntersectRatio { get; set; } = 0.3f;
|
public float IntersectRatio = 0.3f;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// Entities will only be triggered if their speed exceeds this limit.
|
/// Entities will only be triggered if their speed exceeds this limit.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
[DataField("requiredTriggeredSpeed")]
|
[DataField("requiredTriggeredSpeed")]
|
||||||
public float RequiredTriggerSpeed { get; set; } = 3.5f;
|
public float RequiredTriggerSpeed = 3.5f;
|
||||||
}
|
}
|
||||||
|
|
||||||
[RegisterComponent]
|
[RegisterComponent]
|
||||||
|
|||||||
@@ -13,6 +13,7 @@
|
|||||||
- type: Transform
|
- type: Transform
|
||||||
anchored: true
|
anchored: true
|
||||||
- type: SyncSprite
|
- type: SyncSprite
|
||||||
|
- type: Clickable
|
||||||
- type: Sprite
|
- type: Sprite
|
||||||
sprite: Tiles/Planet/lava.rsi
|
sprite: Tiles/Planet/lava.rsi
|
||||||
netsync: false
|
netsync: false
|
||||||
|
|||||||
Reference in New Issue
Block a user