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