public PlayTimer(IUpdateFrame client, ISpawnPink spawnPink) { this.client = client; this.spawnPink = spawnPink; nextPAppleSpawnTime = SetNextPAppleSpawnTime(); timer = new DispatcherTimer(); timer.Interval = TimeSpan.FromMilliseconds(defaultSpeed); timer.Tick += Tick; }
public void RemoveUpdateFrameObject(IUpdateFrame obj) { UpdateFrameObjects.Add(obj); }
public void AddUpdateFrameObject(IUpdateFrame obj) { UpdateFrameObjects.Add(obj); }