Added signal guards
This commit is contained in:
parent
cf12a96a75
commit
5438bc9ffd
|
@ -75,15 +75,21 @@ public partial class TAS_System : Node
|
||||||
|
|
||||||
|
|
||||||
public void StartIncrementingFrames()
|
public void StartIncrementingFrames()
|
||||||
{
|
{
|
||||||
this.IsIncrementingFrames = true;
|
if (this.IsIncrementingFrames == false)
|
||||||
EmitSignal(SignalName.StartedIncrementing);
|
{
|
||||||
|
this.IsIncrementingFrames = true;
|
||||||
|
EmitSignal(SignalName.StartedIncrementing);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void StopIncrementingFrames()
|
public void StopIncrementingFrames()
|
||||||
{
|
{
|
||||||
this.IsIncrementingFrames = false;
|
if (this.IsIncrementingFrames == true)
|
||||||
EmitSignal(SignalName.StoppedIncrementing);
|
{
|
||||||
|
this.IsIncrementingFrames = false;
|
||||||
|
EmitSignal(SignalName.StoppedIncrementing);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public void ResetFrameCount()
|
public void ResetFrameCount()
|
||||||
|
|
Loading…
Reference in New Issue