예제 #1
0
        public bool Execute(GraphicEntity entity)
        {
            var find = entity.GetComponents <GeneralCameraComponent>();

            if (!find.Any())
            {
                return(false);
            }

            entity.RemoveComponents <CameraMovementComponent>();

            return(true);
        }
예제 #2
0
        public bool Execute(GraphicEntity entity)
        {
            var find = entity.GetComponents <GeneralCameraComponent>();

            if (!find.Any())
            {
                return(false);
            }
            var ccom = find.First();

            ccom.ResetToDefault();
            entity.RemoveComponents <CameraMovementComponent>();

            return(true);
        }