public class ValveBehaviour
Inherits BloodContainer
, Messages.IUse
Liquid valve behaviour
Fields
public AudioClip TurnSound
[SkipSerialisation]
The noise it makes when the valve is opened or closed
public Transform ValveTransform
[SkipSerialisation]
A reference to the handle transform
public SpriteRenderer DisplayRenderer
[SkipSerialisation]
A reference to the little display that says "CLOSED" or "OPEN"
public float TurnDuration
[SkipSerialisation]
The duration of the animation in seconds
public float MinAngle
[SkipSerialisation]
The CLOSED position of the valve
public float MaxAngle
[SkipSerialisation]
The OPEN position of the valve
public AnimationCurve ValveTurnCurve
[SkipSerialisation]
The curve that determines the valve animation
public float ValvePosition
Current valve handle position
public bool LastTarget
The last position that was requested. This exists to make the animation smooth
Properties
public override bool AllowsOverflow
No description provided
public override bool AllowsTransfer
No description provided
public override bool AllowPressureTransfer
No description provided
public override Vector2 Limits
No description provided
Methods
protected virtual void Start()
No description provided
public void Use(ActivationPropagation activation)
No description provided
public void OpenValve()
No description provided
public void CloseValve()
No description provided
protected override void Update()
No description provided