コード例 #1
0
        // Đố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);
        }
コード例 #2
0
    protected override void SetCollectionUpdater()
    {
        _hoverAlsoHandles = true;

        if (_pathUpdater == null)
        {
            _pathUpdater = new PathUpdater();
        }


        _updater = _pathUpdater as UpdaterBase;

        _updater.Init();
    }
コード例 #3
0
 public void Setup()
 {
     _path    = new TestPath();
     _updater = new PathUpdater(_path);
 }