public void Update(PrototypeMapGen.MyInput input) { double current = (float)DateTime.Now.TimeOfDay.TotalMilliseconds; int priorState = _State; _Lag = _Lag + (current - _OldTime); _OldTime = current; while (_Lag > 200) { if (_State == _Rings.Count - 1 || _State == 1) { _Value = _Value * -1; } _State += _Value; _Lag -= 200; } if (priorState != _State) { _Render.Graphic = IndexToTileGraphics(_BattleMap, _Rings[_State], this); } }
public void Update(PrototypeMapGen.MyInput input) { }