Class TemporaryHazard
Represents temporary hazard.
public class TemporaryHazard : Hazard, IWrapper<EnvironmentalHazard>
- Inheritance
-
TemporaryHazard
- Implements
-
IWrapper<EnvironmentalHazard>
- Derived
- Inherited Members
- Extension Methods
Constructors
TemporaryHazard(TemporaryHazard)
Initializes a new instance of the TemporaryHazard class.
public TemporaryHazard(TemporaryHazard hazard)
Parameters
hazard
TemporaryHazardThe Hazards.TemporaryHazard instance.
Properties
Base
Gets the Hazards.TemporaryHazard.
public TemporaryHazard Base { get; }
Property Value
- TemporaryHazard
Duration
Gets or sets elapsed time which has spend after creating.
public float Duration { get; set; }
Property Value
IsDestroyed
Gets or sets a value indicating whether hazard is destroyed.
public bool IsDestroyed { get; set; }
Property Value
TotalDuration
Gets the total duration before hazard gets destroyed.
public float TotalDuration { get; }
Property Value
Methods
Destroy()
Destroys this hazard.
public void Destroy()