Assignment3Advanced.Timer.Tick C# (CSharp) Method

Tick() public method

public Tick ( float deltaTime ) : void
deltaTime float
return void
    public void Tick(float deltaTime)
    {
      elapsedTime += deltaTime;
      if (elapsedTime >= targetTime)
        onReached();
    }

Usage Example

Example #1
0
 public void Tick(float deltaTime)
 {
     toNextLight.Tick(deltaTime);
 }