Commit d9700e8c authored by Markus Schlösser's avatar Markus Schlösser

Added story

parent e4a39c2c
......@@ -1162,8 +1162,6 @@ MonoBehaviour:
Assistant of Head of Lead of Design
Sound
Emotional Support'
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 699b3cabdbebb6a4c87394789c9dc4ba, type: 2}
......@@ -1234,12 +1232,12 @@ MonoBehaviour:
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_textInfo:
textComponent: {fileID: 1506370067}
characterCount: 156
characterCount: 150
spriteCount: 0
spaceCount: 29
wordCount: 24
spaceCount: 28
wordCount: 23
linkCount: 0
lineCount: 17
lineCount: 16
pageCount: 1
materialCount: 1
m_isUsingLegacyAnimationComponent: 0
......
......@@ -395,7 +395,8 @@ PrefabInstance:
propertyPath: m_LocalScale.z
value: 0.25
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedComponents:
- {fileID: 8361081529510240024, guid: 05595cef9093ff9479bd9a408951ff34, type: 3}
m_SourcePrefab: {fileID: 100100000, guid: 05595cef9093ff9479bd9a408951ff34, type: 3}
--- !u!1 &396063180
GameObject:
......@@ -1868,7 +1869,7 @@ RectTransform:
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.87, y: 0}
m_AnchorMax: {x: 0.87, y: 0.3}
m_AnchoredPosition: {x: 0, y: -0.000022888184}
m_AnchoredPosition: {x: 0, y: -0.000061035156}
m_SizeDelta: {x: 175, y: -0.000030517578}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &1453967851
......@@ -1906,7 +1907,7 @@ RectTransform:
m_Father: {fileID: 813830715}
m_RootOrder: 4
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0.2, y: 0.1}
m_AnchorMin: {x: 0.2, y: 0.3}
m_AnchorMax: {x: 0.8, y: 0.8}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
......
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1 &3585312758139465632
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1069565521599366162}
- component: {fileID: 8044790698488172031}
m_Layer: 0
m_Name: Hide Cursor
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!4 &1069565521599366162
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3585312758139465632}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: -40, z: 0}
m_LocalScale: {x: 4, y: 4, z: 4}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &8044790698488172031
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 3585312758139465632}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: ad1f6f92aa937f843a14a7737f633470, type: 3}
m_Name:
m_EditorClassIdentifier:
fileFormatVersion: 2
guid: 02dd07d20a0de364683e7ef406b40c10
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
......@@ -3,7 +3,6 @@ using TMPro;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
using UnityEngine.UIElements;
#if UNITY_EDITOR
using UnityEditor;
......
using System.Collections;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEngine.UI;
public class StoryAnimation : MonoBehaviour {
[SerializeField] [ScenePath] private string mainMenu;
[SerializeField] private float timePerFrame;
[SerializeField] private Image image;
[SerializeField] private Sprite[] images;
private float startTime;
private int currentImage = -1;
private void Awake() {
startTime = Time.time;
}
private void LateUpdate() {
int index = Mathf.FloorToInt((Time.time - startTime) / timePerFrame);
if (index >= images.Length) {
SceneManager.LoadScene(mainMenu);
} else if (currentImage < index) {
currentImage = index;
StartCoroutine(Fade(images[index], 0.25f));
}
}
private IEnumerator Fade(Sprite target, float duration) {
yield return FadeAlpha(0, duration / 2);
image.sprite = target;
Rect rect = image.sprite.rect;
image.GetComponent<AspectRatioFitter>().aspectRatio = rect.width / rect.height;
yield return FadeAlpha(1, duration / 2);
}
private IEnumerator FadeAlpha(float target, float duration) {
float start = image.color.a;
for (float t = 0; t < duration; t += Time.deltaTime) {
Color c = image.color;
c.a = Mathf.Lerp(start, target, t / duration);
image.color = c;
yield return null;
}
Color d = image.color;
d.a = target;
image.color = d;
}
}
fileFormatVersion: 2
guid: bdde5058961a2574ea3f7e851e583118
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:
......@@ -120,6 +120,163 @@ NavMeshSettings:
debug:
m_Flags: 0
m_NavMeshData: {fileID: 0}
--- !u!1001 &20779827
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 7974195246117068452, guid: 51d7f77f62fe8f3418a499f55d5d5b6a,
type: 3}
propertyPath: m_Name
value: Return to Main Menu
objectReference: {fileID: 0}
- target: {fileID: 2801783352397115576, guid: 51d7f77f62fe8f3418a499f55d5d5b6a,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2801783352397115576, guid: 51d7f77f62fe8f3418a499f55d5d5b6a,
type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2801783352397115576, guid: 51d7f77f62fe8f3418a499f55d5d5b6a,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2801783352397115576, guid: 51d7f77f62fe8f3418a499f55d5d5b6a,
type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2801783352397115576, guid: 51d7f77f62fe8f3418a499f55d5d5b6a,
type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2801783352397115576, guid: 51d7f77f62fe8f3418a499f55d5d5b6a,
type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2801783352397115576, guid: 51d7f77f62fe8f3418a499f55d5d5b6a,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2801783352397115576, guid: 51d7f77f62fe8f3418a499f55d5d5b6a,
type: 3}
propertyPath: m_RootOrder
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2801783352397115576, guid: 51d7f77f62fe8f3418a499f55d5d5b6a,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2801783352397115576, guid: 51d7f77f62fe8f3418a499f55d5d5b6a,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 2801783352397115576, guid: 51d7f77f62fe8f3418a499f55d5d5b6a,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 51d7f77f62fe8f3418a499f55d5d5b6a, type: 3}
--- !u!1 &555430965
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 555430969}
- component: {fileID: 555430968}
- component: {fileID: 555430966}
- component: {fileID: 555430967}
m_Layer: 5
m_Name: Image
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &555430966
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 555430965}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
m_Name:
m_EditorClassIdentifier:
m_Material: {fileID: 0}
m_Color: {r: 1, g: 1, b: 1, a: 0}
m_RaycastTarget: 1
m_OnCullStateChanged:
m_PersistentCalls:
m_Calls: []
m_Sprite: {fileID: 0}
m_Type: 0
m_PreserveAspect: 0
m_FillCenter: 1
m_FillMethod: 4
m_FillAmount: 1
m_FillClockwise: 1
m_FillOrigin: 0
m_UseSpriteMesh: 0
m_PixelsPerUnitMultiplier: 1
--- !u!114 &555430967
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 555430965}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 86710e43de46f6f4bac7c8e50813a599, type: 3}
m_Name:
m_EditorClassIdentifier:
m_AspectMode: 2
m_AspectRatio: 1.7783334
--- !u!222 &555430968
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 555430965}
m_CullTransparentMesh: 0
--- !u!224 &555430969
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 555430965}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 2079291207}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 1, y: 1}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!1 &649372299
GameObject:
m_ObjectHideFlags: 0
......@@ -203,118 +360,191 @@ Transform:
m_Father: {fileID: 0}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1394831235
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1394831237}
- component: {fileID: 1394831236}
m_Layer: 0
m_Name: Load Main Menu
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1394831236
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1394831235}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: bceadea5aab919d46b48588f668f51c1, type: 3}
m_Name:
m_EditorClassIdentifier:
scene: Assets/_Game/MainMenu/MainMenu.unity
delay: 2
--- !u!4 &1394831237
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1394831235}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1, y: 1, z: 1}
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 1
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &1418634102
--- !u!1001 &2022110512
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 990818738648802836, guid: 05595cef9093ff9479bd9a408951ff34,
- target: {fileID: 3585312758139465632, guid: 02dd07d20a0de364683e7ef406b40c10,
type: 3}
propertyPath: m_Name
value: Target
value: Hide Cursor
objectReference: {fileID: 0}
- target: {fileID: 3178131014301288060, guid: 05595cef9093ff9479bd9a408951ff34,
- target: {fileID: 1069565521599366162, guid: 02dd07d20a0de364683e7ef406b40c10,
type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3178131014301288060, guid: 05595cef9093ff9479bd9a408951ff34,
- target: {fileID: 1069565521599366162, guid: 02dd07d20a0de364683e7ef406b40c10,
type: 3}
propertyPath: m_LocalPosition.y
value: 10
value: -40
objectReference: {fileID: 0}
- target: {fileID: 3178131014301288060, guid: 05595cef9093ff9479bd9a408951ff34,
- target: {fileID: 1069565521599366162, guid: 02dd07d20a0de364683e7ef406b40c10,
type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3178131014301288060, guid: 05595cef9093ff9479bd9a408951ff34,
- target: {fileID: 1069565521599366162, guid: 02dd07d20a0de364683e7ef406b40c10,
type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: 3178131014301288060, guid: 05595cef9093ff9479bd9a408951ff34,
- target: {fileID: 1069565521599366162, guid: 02dd07d20a0de364683e7ef406b40c10,
type: 3}
propertyPath: m_LocalRotation.y
value: -0
objectReference: {fileID: 0}
- target: {fileID: 3178131014301288060, guid: 05595cef9093ff9479bd9a408951ff34,
- target: {fileID: 1069565521599366162, guid: 02dd07d20a0de364683e7ef406b40c10,
type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: 3178131014301288060, guid: 05595cef9093ff9479bd9a408951ff34,
- target: {fileID: 1069565521599366162, guid: 02dd07d20a0de364683e7ef406b40c10,
type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 3178131014301288060, guid: 05595cef9093ff9479bd9a408951ff34,
- target: {fileID: 1069565521599366162, guid: 02dd07d20a0de364683e7ef406b40c10,
type: 3}
propertyPath: m_RootOrder
value: 2
objectReference: {fileID: 0}
- target: {fileID: 3178131014301288060, guid: 05595cef9093ff9479bd9a408951ff34,
- target: {fileID: 1069565521599366162, guid: 02dd07d20a0de364683e7ef406b40c10,
type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3178131014301288060, guid: 05595cef9093ff9479bd9a408951ff34,
- target: {fileID: 1069565521599366162, guid: 02dd07d20a0de364683e7ef406b40c10,
type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 3178131014301288060, guid: 05595cef9093ff9479bd9a408951ff34,
- target: {fileID: 1069565521599366162, guid: 02dd07d20a0de364683e7ef406b40c10,
type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
m_RemovedComponents:
- {fileID: 7623937761096657450, guid: 05595cef9093ff9479bd9a408951ff34, type: 3}
m_SourcePrefab: {fileID: 100100000, guid: 05595cef9093ff9479bd9a408951ff34, type: 3}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 02dd07d20a0de364683e7ef406b40c10, type: 3}
--- !u!1 &2079291202
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2079291207}
- component: {fileID: 2079291206}
- component: {fileID: 2079291205}
- component: {fileID: 2079291204}
- component: {fileID: 2079291203}
m_Layer: 5
m_Name: Canvas
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &2079291203
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2079291202}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: bdde5058961a2574ea3f7e851e583118, type: 3}
m_Name:
m_EditorClassIdentifier:
mainMenu: Assets/_Game/MainMenu/MainMenu.unity
timePerFrame: 2
image: {fileID: 555430966}
images:
- {fileID: 21300000, guid: 26849c7fbae9bed4f8faf9639dd84b97, type: 3}
- {fileID: 21300000, guid: 7b742492ff7117941912e1d045420e0f, type: 3}
- {fileID: 21300000, guid: f76e337e6ee307a439649eedc6ed39f9, type: 3}
--- !u!114 &2079291204
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2079291202}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: dc42784cf147c0c48a680349fa168899, type: 3}
m_Name:
m_EditorClassIdentifier:
m_IgnoreReversedGraphics: 1
m_BlockingObjects: 0
m_BlockingMask:
serializedVersion: 2
m_Bits: 4294967295
--- !u!114 &2079291205
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2079291202}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
m_Name:
m_EditorClassIdentifier:
m_UiScaleMode: 1
m_ReferencePixelsPerUnit: 100
m_ScaleFactor: 1
m_ReferenceResolution: {x: 1600, y: 900}
m_ScreenMatchMode: 0
m_MatchWidthOrHeight: 0
m_PhysicalUnit: 3
m_FallbackScreenDPI: 96
m_DefaultSpriteDPI: 96
m_DynamicPixelsPerUnit: 1
--- !u!223 &2079291206
Canvas:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2079291202}
m_Enabled: 1
serializedVersion: 3
m_RenderMode: 0
m_Camera: {fileID: 0}
m_PlaneDistance: 100
m_PixelPerfect: 0
m_ReceivesEvents: 1
m_OverrideSorting: 0
m_OverridePixelPerfect: 0
m_SortingBucketNormalizedSize: 0
m_AdditionalShaderChannelsFlag: 0
m_SortingLayerID: 0
m_SortingOrder: 0
m_TargetDisplay: 0
--- !u!224 &2079291207
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2079291202}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0, y: 0, z: 0}
m_Children:
- {fileID: 555430969}
m_Father: {fileID: 0}
m_RootOrder: 3
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 0, y: 0}
m_SizeDelta: {x: 0, y: 0}
m_Pivot: {x: 0, y: 0}
......@@ -281,6 +281,75 @@ PrefabInstance:
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 9a90598608a991a4ab323c001920e021, type: 3}
--- !u!1001 &525946079