Skip to content
Snippets Groups Projects

Compare revisions

Changes are shown as if the source revision was being merged into the target revision. Learn more about comparing revisions.

Source

Select target project
No results found

Target

Select target project
  • nleins/bwm-mrtk-project
  • cundl/bwm-gruppe-3-kathleen-jessika
  • razum/bwm-gruppe-7-ginie-caroline
  • stieler/bwm-gruppe-1
  • le10/bwm-mrtk-project
  • schoeler1/bwm-mrtk-project
  • jonuzi1/bwm-mrtk-project-gruppe-4
7 results
Show changes
Commits on Source (3)
Showing
with 8434 additions and 35 deletions
{
"version": "1.0",
"components": [
"Microsoft.VisualStudio.Workload.ManagedGame"
]
}
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!21 &2100000
Material:
serializedVersion: 8
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Kalender
m_Shader: {fileID: 46, guid: 0000000000000000f000000000000000, type: 0}
m_ValidKeywords: []
m_InvalidKeywords: []
m_LightmapFlags: 4
m_EnableInstancingVariants: 0
m_DoubleSidedGI: 0
m_CustomRenderQueue: -1
stringTagMap: {}
disabledShaderPasses: []
m_SavedProperties:
serializedVersion: 3
m_TexEnvs:
- _BumpMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailAlbedoMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailMask:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _DetailNormalMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _EmissionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MainTex:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _MetallicGlossMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _OcclusionMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
- _ParallaxMap:
m_Texture: {fileID: 0}
m_Scale: {x: 1, y: 1}
m_Offset: {x: 0, y: 0}
m_Ints: []
m_Floats:
- _BumpScale: 1
- _Cutoff: 0.5
- _DetailNormalMapScale: 1
- _DstBlend: 0
- _GlossMapScale: 1
- _Glossiness: 0.5
- _GlossyReflections: 1
- _Metallic: 0
- _Mode: 0
- _OcclusionStrength: 1
- _Parallax: 0.02
- _SmoothnessTextureChannel: 0
- _SpecularHighlights: 1
- _SrcBlend: 1
- _UVSec: 0
- _ZWrite: 1
m_Colors:
- _Color: {r: 1, g: 1, b: 1, a: 1}
- _EmissionColor: {r: 0, g: 0, b: 0, a: 1}
m_BuildTextureStacks: []
fileFormatVersion: 2
guid: 875a346befca85e4ea23320dd266d142
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 2100000
userData:
assetBundleName:
assetBundleVariant:
fileFormatVersion: 2
guid: 0cb4781804c1eee4da37764a7d18a781
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
File added
fileFormatVersion: 2
guid: 02fff0a990e9fb540b6d59584671f84d
ModelImporter:
serializedVersion: 21300
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 2
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
removeConstantScaleCurves: 1
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
nodeNameCollisionStrategy: 1
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
bakeAxisConversion: 0
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
optimizeBones: 1
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVMarginMethod: 1
secondaryUVMinLightmapResolution: 40
secondaryUVMinObjectScale: 1
secondaryUVPackMargin: 4
useFileScale: 1
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 1
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 2
humanoidOversampling: 1
avatarSetup: 0
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
remapMaterialsIfMaterialImportModeIsNone: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:
# Blender MTL File: 'desk.blend'
# Material Count: 1
newmtl Material.009
Ns 96.078431
Ka 1.000000 1.000000 1.000000
Kd 0.640000 0.640000 0.640000
Ks 0.500000 0.500000 0.500000
Ke 0.000000 0.000000 0.000000
Ni 1.000000
d 1.000000
illum 2
fileFormatVersion: 2
guid: d961a88129cc60746a7c996abdd30087
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Source diff could not be displayed: it is too large. Options to address this: view the blob.
fileFormatVersion: 2
guid: b4bdaf73378c1e9469dcc66ce4a3f3ba
ModelImporter:
serializedVersion: 21300
internalIDToNameTable: []
externalObjects: {}
materials:
materialImportMode: 2
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
removeConstantScaleCurves: 1
motionNodeName:
rigImportErrors:
rigImportWarnings:
animationImportErrors:
animationImportWarnings:
animationRetargetingWarnings:
animationDoRetargetingWarnings: 0
importAnimatedCustomProperties: 0
importConstraints: 0
animationCompression: 1
animationRotationError: 0.5
animationPositionError: 0.5
animationScaleError: 0.5
animationWrapMode: 0
extraExposedTransformPaths: []
extraUserProperties: []
clipAnimations: []
isReadable: 0
meshes:
lODScreenPercentages: []
globalScale: 1
meshCompression: 0
addColliders: 0
useSRGBMaterialColor: 1
sortHierarchyByName: 1
importVisibility: 1
importBlendShapes: 1
importCameras: 1
importLights: 1
nodeNameCollisionStrategy: 1
fileIdsGeneration: 2
swapUVChannels: 0
generateSecondaryUV: 0
useFileUnits: 1
keepQuads: 0
weldVertices: 1
bakeAxisConversion: 0
preserveHierarchy: 0
skinWeightsMode: 0
maxBonesPerVertex: 4
minBoneWeight: 0.001
optimizeBones: 1
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVMarginMethod: 1
secondaryUVMinLightmapResolution: 40
secondaryUVMinObjectScale: 1
secondaryUVPackMargin: 4
useFileScale: 1
tangentSpace:
normalSmoothAngle: 60
normalImportMode: 0
tangentImportMode: 3
normalCalculationMode: 4
legacyComputeAllNormalsFromSmoothingGroupsWhenMeshHasBlendShapes: 0
blendShapeNormalImportMode: 1
normalSmoothingSource: 0
referencedClips: []
importAnimation: 1
humanDescription:
serializedVersion: 3
human: []
skeleton: []
armTwist: 0.5
foreArmTwist: 0.5
upperLegTwist: 0.5
legTwist: 0.5
armStretch: 0.05
legStretch: 0.05
feetSpacing: 0
globalScale: 1
rootMotionBoneName:
hasTranslationDoF: 0
hasExtraRoot: 0
skeletonHasParents: 1
lastHumanDescriptionAvatarSource: {instanceID: 0}
autoGenerateAvatarMappingIfUnspecified: 1
animationType: 2
humanoidOversampling: 1
avatarSetup: 0
addHumanoidExtraRootOnlyWhenUsingAvatar: 1
remapMaterialsIfMaterialImportModeIsNone: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:
using Microsoft.MixedReality.Toolkit.Input;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
public class Aktenordner : MonoBehaviour, IMixedRealityTouchHandler
{
public TextMeshPro textMesh;
void Start()
{
SetTextVisibility(false); // Initial unsichtbar
}
public void OnTouchStarted(HandTrackingInputEventData eventData)
{
SetTextVisibility(true); // Sichtbar machen
}
public void OnTouchCompleted(HandTrackingInputEventData eventData)
{
SetTextVisibility(false); // Wieder unsichtbar machen
}
public void OnTouchUpdated(HandTrackingInputEventData eventData) { }
void SetTextVisibility(bool isVisible)
{
if (isVisible)
{
textMesh.color = new Color(textMesh.color.r, textMesh.color.g, textMesh.color.b, 1.0f); // Voll sichtbar
}
else
{
textMesh.color = new Color(textMesh.color.r, textMesh.color.g, textMesh.color.b, 0.0f); // Unsichtbar
}
}
}
fileFormatVersion: 2
guid: beb1dd16b3d396f4b90bb7690f116800
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
using Microsoft.MixedReality.Toolkit.Input;
using UnityEngine;
public class ButtonVisibility : MonoBehaviour, IMixedRealityTouchHandler
{
public GameObject frontPlate;
void Start()
{
SetVisibility(frontPlate, false);
Debug.Log("Start: FrontPlate sollte unsichtbar sein.");
}
public void OnTouchStarted(HandTrackingInputEventData eventData)
{
SetVisibility(frontPlate, true);
Debug.Log("OnTouchStarted: FrontPlate sollte sichtbar sein.");
}
public void OnTouchCompleted(HandTrackingInputEventData eventData)
{
SetVisibility(frontPlate, false);
Debug.Log("OnTouchCompleted: FrontPlate sollte wieder unsichtbar sein.");
}
public void OnTouchUpdated(HandTrackingInputEventData eventData) { }
private void SetVisibility(GameObject obj, bool isVisible)
{
MeshRenderer renderer = obj.GetComponent<MeshRenderer>();
if (renderer != null)
{
renderer.enabled = isVisible;
Debug.Log("SetVisibility: Renderer ist jetzt " + (isVisible ? "sichtbar" : "unsichtbar"));
}
else
{
Debug.LogError("SetVisibility: Kein MeshRenderer gefunden auf " + obj.name);
}
}
}
fileFormatVersion: 2
guid: 863899ef4140e8d4db92db527e5698a8
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
using UnityEngine;
using TMPro; // Stelle sicher, dass du die TextMeshPro-Namespace verwendest
public class ClickToShowText : MonoBehaviour
{
public GameObject textObject; // Das Textfeld, das du anzeigen mchtest
void Start()
{
textObject.SetActive(false); // Verstecke das Textfeld beim Start
}
void OnMouseDown() // Diese Methode wird aufgerufen, wenn auf das Objekt geklickt wird
{
textObject.SetActive(true); // Zeige das Textfeld an
}
}
fileFormatVersion: 2
guid: bed3abaf7a12a924fbf2e7dd6b4ae63b
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
using UnityEngine;
using UnityEngine.UI;
using TMPro;
public class EmployeeInteraction : MonoBehaviour
{
public GameObject employeePanel;
public TextMeshProUGUI employeeIDText;
public TextMeshProUGUI questionText;
public Button questionButton;
public Button yesButton;
public Button noButton;
public Color correctAnswerColor = Color.green; // Farbe fr die richtige Antwort
private void Start()
{
employeePanel.SetActive(false); // Verstecke das Panel beim Start
yesButton.gameObject.SetActive(false); // Verstecke JA Button
noButton.gameObject.SetActive(false); // Verstecke NEIN Button
questionText.gameObject.SetActive(false); // Verstecke die Frage
}
private void OnMouseDown()
{
ShowEmployeeID();
}
private void ShowEmployeeID()
{
employeePanel.SetActive(true);
employeeIDText.text = "Mitarbeiter ID: 12345"; // Beispielhafte ID
questionButton.gameObject.SetActive(true);
questionButton.onClick.RemoveAllListeners();
questionButton.onClick.AddListener(() => ShowQuestion());
}
private void ShowQuestion()
{
employeeIDText.text = "Mitarbeiter ID: 12345";
questionText.text = "Jeder Mitarbeiter muss stets zu jeder Arbeitszeit die Mitarbeiter ID tragen";
questionText.gameObject.SetActive(true);
questionButton.gameObject.SetActive(false); // Verstecke den Frage Button
yesButton.gameObject.SetActive(true); // Zeige JA Button
noButton.gameObject.SetActive(true); // Zeige NEIN Button
yesButton.onClick.RemoveAllListeners();
noButton.onClick.RemoveAllListeners();
yesButton.onClick.AddListener(() => OnYesButtonClicked());
noButton.onClick.AddListener(() => OnNoButtonClicked());
}
private void OnYesButtonClicked()
{
Debug.Log("Ja Button geklickt");
yesButton.GetComponent<Image>().color = correctAnswerColor; // Markiere JA Button grn
// Optional: Zeige eine Nachricht an oder fhre eine weitere Aktion aus
}
private void OnNoButtonClicked()
{
Debug.Log("Nein Button geklickt");
employeePanel.SetActive(false); // Verstecke das Panel oder fhre andere Aktionen aus
ResetUI();
}
private void ResetUI()
{
questionButton.gameObject.SetActive(true); // Zeige den Frage Button
questionText.gameObject.SetActive(false); // Verstecke die Frage
yesButton.gameObject.SetActive(false); // Verstecke JA Button
noButton.gameObject.SetActive(false); // Verstecke NEIN Button
yesButton.GetComponent<Image>().color = Color.white; // Setze die Farbe des JA Buttons zurck
}
}
fileFormatVersion: 2
guid: 19bd108902f9c9547bc7e581baf738d2
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class KeyboardControl : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
//Detect when the down arrow key is pressed down
if (Input.GetKey(KeyCode.RightArrow))
{
this.gameObject.transform.Rotate(0, 0, -.1f, Space.Self);
}
if (Input.GetKey(KeyCode.LeftArrow))
{
this.gameObject.transform.Rotate(0, 0, .1f, Space.Self);
}
if (Input.GetKey(KeyCode.DownArrow))
{
this.gameObject.transform.Rotate(-.1f, 0, 0, Space.Self);
}
if (Input.GetKey(KeyCode.UpArrow))
{
this.gameObject.transform.Rotate(.1f, 0, 0, Space.Self);
}
}
}
// Bibliotheken
using UnityEngine; //f. spielentwicklung und UI Elemente
using UnityEngine.UI;
using TMPro; // TMPro (TextMeshPro): erweiterte Textdarstellung verwendet
using System.Collections.Generic; // Verw. generischer Datenstrukturen wie Listen notwendig
public class QuizManager : MonoBehaviour //QuizManager ist Klasse & erbt von MonoBehaviour
{
public TextMeshProUGUI questionText; // TMPU Variabale dient zur anezige der aktuellen frage
public Button[] answerButtons; //array von "Button" wird f. AW Mgl. verwendet
private List<Question> questions = new List<Question>(); // Liste, speichert Objekte vom Typ "Question"
private Question currentQuestion; // verwalten die aktuell gestellten Frage
private int currentQuestionIndex = 0;
// Farben fr AWs: Farbvariablen, werden zur anzeige von feedback verwendet
public Color correctColor = Color.green;
public Color wrongColor = Color.red;
public Color normalColor = Color.white;
// Methoden
void Start() // beim Starten des Skripts wird die Methode aufgerufen: Fragen laden + erste Frage wird gestellt
{
LoadQuestions();
SetCurrentQuestion();
}
void LoadQuestions()
{ // // Quizfragen werden initialisiert + zur "question" Liste hinzugefgt
questions.Add(new Question("Frage 1: Was ist Phishing?", new string[] { "A) Eine Methode zum Fischen", "B)", "C)" }, 1));
}
// Methode aktualisiert die UI mit der aktuellen Frage + den dazugehrigen AWs
// es werden ebenfalls alte eventlistener von dne buttons entfernt und neue hinzugefgt die "CheckAnswer" aufrufen
void SetCurrentQuestion()
{
currentQuestion = questions[currentQuestionIndex];
questionText.text = currentQuestion.text;
for (int i = 0; i < answerButtons.Length; i++)
{
answerButtons[i].GetComponentInChildren<TextMeshProUGUI>().text = currentQuestion.answers[i];
answerButtons[i].GetComponent<Image>().color = normalColor;
answerButtons[i].onClick.RemoveAllListeners();
int capture = i;
answerButtons[i].onClick.AddListener(() => CheckAnswer(capture));
}
}
// berprft ob die gewhlte AW korrekt ist und ndert die Farbe des buttons entsprechend
public void CheckAnswer(int index)
{
if (index == currentQuestion.correctAnswer)
{
answerButtons[index].GetComponent<Image>().color = correctColor;
}
else
{
answerButtons[index].GetComponent<Image>().color = wrongColor;
answerButtons[currentQuestion.correctAnswer].GetComponent<Image>().color = correctColor; //richtige Antwort zeigen
}
}
// wichtig fr das einrichten der nchsten fragen, aktuell aber leer
void SetNextQuestion() { }
}
// Question Klasse enthlt Frage, Fragetext, AW-Mgl. und den Index der richtigen AW
[System.Serializable]
public class Question
{
public string text;
public string[] answers;
public int correctAnswer;
public Question(string text, string[] answers, int correctAnswer)
{
this.text = text;
this.answers = answers;
this.correctAnswer = correctAnswer;
}
}