// Đối cảnh và camere chỉ cần đồi camera View và World; public override void Update(GameTime gameTime) { if (PathUpdater != null) { PathUpdater.Update(gameTime); Vector3 CurPos = PathUpdater.GetCurrentPosition(); xTran = CurPos.X; yTran = CurPos.Y; } View = Matrix.CreateScale(xScale, yScale, 1) * Matrix.CreateRotationZ(zRot) * Matrix.CreateTranslation(xTran, yTran, 0); }
protected override void SetCollectionUpdater() { _hoverAlsoHandles = true; if (_pathUpdater == null) { _pathUpdater = new PathUpdater(); } _updater = _pathUpdater as UpdaterBase; _updater.Init(); }
public void Setup() { _path = new TestPath(); _updater = new PathUpdater(_path); }