Esempio n. 1
0
        public void Trailer(Vector3 velocity, float spin, float zoom)
        {
            TrailerCommand = new TrailerCameraController()
            {
                Velocity = velocity,
                Spin     = spin,
                Zoom     = zoom
            };

            TrailerCommand.Activate(World, this);
        }
Esempio n. 2
0
        public override void Update(DwarfTime time, ChunkManager chunks)
        {
            if (TrailerCommand != null)
            {
                TrailerCommand.Update(World, this);
                if (!TrailerCommand.Active)
                {
                    TrailerCommand = null;
                }
            }

            switch (Control)
            {
            case ControlType.Overhead:
                OverheadUpdate(time, chunks);
                break;

            case ControlType.Walk:
                WalkUpdate(time, chunks);
                break;
            }
            base.Update(time, chunks);
        }