예제 #1
0
            public void Execute(MoveCameraToTargetComponent component)
            {
                //detect that camera should be moved to new position

                //created camera movement component
                var movecom = new CameraMoveToPositionComponent {
                    TargetPosition = component.TargetPosition
                };

                //just put com to camera entity
                //camera moving is job for Camera system
                emanager
                .GetEntity(snapshot.CurrentCameraTag)
                .AddComponent(movecom);

                entity.RemoveComponent(component);
            }