Sounds
This commit is contained in:
Binary file not shown.
@@ -0,0 +1,23 @@
|
||||
fileFormatVersion: 2
|
||||
guid: cb9df4df2c1086c41b80de160cca7d86
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 8
|
||||
defaultSettings:
|
||||
serializedVersion: 2
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
preloadAudioData: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,23 @@
|
||||
fileFormatVersion: 2
|
||||
guid: b3faeef07c98a824b94e3b279c12991a
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 8
|
||||
defaultSettings:
|
||||
serializedVersion: 2
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
preloadAudioData: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
Binary file not shown.
@@ -0,0 +1,23 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 49696eb97572bf946a581846bd0c97f0
|
||||
AudioImporter:
|
||||
externalObjects: {}
|
||||
serializedVersion: 8
|
||||
defaultSettings:
|
||||
serializedVersion: 2
|
||||
loadType: 0
|
||||
sampleRateSetting: 0
|
||||
sampleRateOverride: 44100
|
||||
compressionFormat: 1
|
||||
quality: 1
|
||||
conversionMode: 0
|
||||
preloadAudioData: 0
|
||||
platformSettingOverrides: {}
|
||||
forceToMono: 0
|
||||
normalize: 1
|
||||
loadInBackground: 0
|
||||
ambisonic: 0
|
||||
3D: 1
|
||||
userData:
|
||||
assetBundleName:
|
||||
assetBundleVariant:
|
||||
+563
-21
@@ -207,7 +207,7 @@ GameObject:
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
m_IsActive: 0
|
||||
--- !u!114 &82641080
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -242,7 +242,7 @@ MonoBehaviour:
|
||||
inputNameHorizontal: Horizontal 2
|
||||
inputNameVertical: Vertical 2
|
||||
player: {fileID: 633797745}
|
||||
awarenessSlider: {fileID: 0}
|
||||
awarenessSlider: {fileID: 1158125514}
|
||||
--- !u!54 &82641082
|
||||
Rigidbody:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -464,6 +464,7 @@ RectTransform:
|
||||
- {fileID: 1158125513}
|
||||
- {fileID: 827642025}
|
||||
- {fileID: 1395988314}
|
||||
- {fileID: 1272165865}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0}
|
||||
@@ -523,7 +524,7 @@ BoxCollider:
|
||||
m_ProvidesContacts: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Size: {x: 0.52, y: 4.91, z: 0.49}
|
||||
m_Size: {x: 0.52, y: 1.69, z: 0.49}
|
||||
m_Center: {x: 0, y: 0, z: 0}
|
||||
--- !u!23 &90976999
|
||||
MeshRenderer:
|
||||
@@ -632,6 +633,7 @@ MonoBehaviour:
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Assembly-CSharp::Goal
|
||||
WinUI: {fileID: 1395988313}
|
||||
Win: {fileID: 8300000, guid: a20ec42fa299fe443a2b51d8a27c7203, type: 3}
|
||||
--- !u!65 &209519238
|
||||
BoxCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -941,6 +943,42 @@ CanvasRenderer:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 250261523}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &272669015
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 272669016}
|
||||
m_Layer: 5
|
||||
m_Name: Handle Slide Area
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &272669016
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 272669015}
|
||||
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_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 1406365953}
|
||||
m_Father: {fileID: 1272165865}
|
||||
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: -20, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!1 &280212943
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -1773,6 +1811,42 @@ Transform:
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &546777356
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 546777357}
|
||||
m_Layer: 5
|
||||
m_Name: Fill Area
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &546777357
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 546777356}
|
||||
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_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 1251339584}
|
||||
m_Father: {fileID: 1272165865}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0.25}
|
||||
m_AnchorMax: {x: 1, y: 0.75}
|
||||
m_AnchoredPosition: {x: -5, y: 0}
|
||||
m_SizeDelta: {x: -20, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!4 &633797745 stripped
|
||||
Transform:
|
||||
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 4c591588d29050a46ae3b8c3379016ac, type: 3}
|
||||
@@ -2100,7 +2174,7 @@ GameObject:
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
m_IsActive: 0
|
||||
--- !u!64 &741902672
|
||||
MeshCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -2617,6 +2691,7 @@ MonoBehaviour:
|
||||
awarenessSlider: {fileID: 1158125514}
|
||||
SilderColor: {fileID: 390980521}
|
||||
timeToWakeUp: 2
|
||||
Awake: {fileID: 8300000, guid: fa17c554439ccbb4eb4a792d4335967d, type: 3}
|
||||
--- !u!4 &1034880022
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -2632,6 +2707,81 @@ Transform:
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &1056433676
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1056433677}
|
||||
- component: {fileID: 1056433679}
|
||||
- component: {fileID: 1056433678}
|
||||
m_Layer: 5
|
||||
m_Name: Background
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1056433677
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1056433676}
|
||||
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_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 1272165865}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0, y: 0.25}
|
||||
m_AnchorMax: {x: 1, y: 0.75}
|
||||
m_AnchoredPosition: {x: 0, y: 0}
|
||||
m_SizeDelta: {x: 0, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &1056433678
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1056433676}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 10907, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Type: 1
|
||||
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!222 &1056433679
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1056433676}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &1158125512
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -2722,6 +2872,81 @@ MonoBehaviour:
|
||||
m_OnValueChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
--- !u!1 &1251339583
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1251339584}
|
||||
- component: {fileID: 1251339586}
|
||||
- component: {fileID: 1251339585}
|
||||
m_Layer: 5
|
||||
m_Name: Fill
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1251339584
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1251339583}
|
||||
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_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 546777357}
|
||||
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: 10, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!114 &1251339585
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1251339583}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 10905, guid: 0000000000000000f000000000000000, type: 0}
|
||||
m_Type: 1
|
||||
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!222 &1251339586
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1251339583}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &1262927943
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -2756,6 +2981,96 @@ Transform:
|
||||
- {fileID: 1940342123}
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &1272165863
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1272165865}
|
||||
- component: {fileID: 1272165864}
|
||||
m_Layer: 5
|
||||
m_Name: sfxSlider
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!114 &1272165864
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1272165863}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 67db9e8f0e2ae9c40bc1e2b64352a6b4, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Slider
|
||||
m_Navigation:
|
||||
m_Mode: 0
|
||||
m_WrapAround: 0
|
||||
m_SelectOnUp: {fileID: 0}
|
||||
m_SelectOnDown: {fileID: 0}
|
||||
m_SelectOnLeft: {fileID: 0}
|
||||
m_SelectOnRight: {fileID: 0}
|
||||
m_Transition: 1
|
||||
m_Colors:
|
||||
m_NormalColor: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_HighlightedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_PressedColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 1}
|
||||
m_SelectedColor: {r: 0.9607843, g: 0.9607843, b: 0.9607843, a: 1}
|
||||
m_DisabledColor: {r: 0.78431374, g: 0.78431374, b: 0.78431374, a: 0.5019608}
|
||||
m_ColorMultiplier: 1
|
||||
m_FadeDuration: 0.1
|
||||
m_SpriteState:
|
||||
m_HighlightedSprite: {fileID: 0}
|
||||
m_PressedSprite: {fileID: 0}
|
||||
m_SelectedSprite: {fileID: 0}
|
||||
m_DisabledSprite: {fileID: 0}
|
||||
m_AnimationTriggers:
|
||||
m_NormalTrigger: Normal
|
||||
m_HighlightedTrigger: Highlighted
|
||||
m_PressedTrigger: Pressed
|
||||
m_SelectedTrigger: Selected
|
||||
m_DisabledTrigger: Disabled
|
||||
m_Interactable: 1
|
||||
m_TargetGraphic: {fileID: 1406365955}
|
||||
m_FillRect: {fileID: 1251339584}
|
||||
m_HandleRect: {fileID: 1406365953}
|
||||
m_Direction: 0
|
||||
m_MinValue: 0
|
||||
m_MaxValue: 1
|
||||
m_WholeNumbers: 0
|
||||
m_Value: 1
|
||||
m_OnValueChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
--- !u!224 &1272165865
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1272165863}
|
||||
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_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
- {fileID: 1056433677}
|
||||
- {fileID: 546777357}
|
||||
- {fileID: 272669016}
|
||||
m_Father: {fileID: 84958528}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
m_AnchorMin: {x: 0.5, y: 0.5}
|
||||
m_AnchorMax: {x: 0.5, y: 0.5}
|
||||
m_AnchoredPosition: {x: 490, y: 214}
|
||||
m_SizeDelta: {x: 160, y: 20}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!1 &1370261841
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -2907,6 +3222,81 @@ CanvasRenderer:
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1395988313}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!1 &1406365952
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1406365953}
|
||||
- component: {fileID: 1406365954}
|
||||
- component: {fileID: 1406365955}
|
||||
m_Layer: 5
|
||||
m_Name: Handle
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!224 &1406365953
|
||||
RectTransform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1406365952}
|
||||
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_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 272669016}
|
||||
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: 20, y: 0}
|
||||
m_Pivot: {x: 0.5, y: 0.5}
|
||||
--- !u!222 &1406365954
|
||||
CanvasRenderer:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1406365952}
|
||||
m_CullTransparentMesh: 1
|
||||
--- !u!114 &1406365955
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1406365952}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: fe87c0e1cc204ed48ad3b37840f39efc, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.Image
|
||||
m_Material: {fileID: 0}
|
||||
m_Color: {r: 1, g: 1, b: 1, a: 1}
|
||||
m_RaycastTarget: 1
|
||||
m_RaycastPadding: {x: 0, y: 0, z: 0, w: 0}
|
||||
m_Maskable: 1
|
||||
m_OnCullStateChanged:
|
||||
m_PersistentCalls:
|
||||
m_Calls: []
|
||||
m_Sprite: {fileID: 10913, guid: 0000000000000000f000000000000000, type: 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!1 &1604116870
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -3155,6 +3545,149 @@ SphereCollider:
|
||||
serializedVersion: 3
|
||||
m_Radius: 2
|
||||
m_Center: {x: 0, y: 0, z: 0}
|
||||
--- !u!1 &1902048219
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
serializedVersion: 6
|
||||
m_Component:
|
||||
- component: {fileID: 1902048223}
|
||||
- component: {fileID: 1902048222}
|
||||
- component: {fileID: 1902048224}
|
||||
m_Layer: 0
|
||||
m_Name: BackgroundManager
|
||||
m_TagString: Untagged
|
||||
m_Icon: {fileID: 0}
|
||||
m_NavMeshLayer: 0
|
||||
m_StaticEditorFlags: 0
|
||||
m_IsActive: 1
|
||||
--- !u!82 &1902048222
|
||||
AudioSource:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1902048219}
|
||||
m_Enabled: 1
|
||||
serializedVersion: 4
|
||||
OutputAudioMixerGroup: {fileID: 0}
|
||||
m_audioClip: {fileID: 0}
|
||||
m_Resource: {fileID: 8300000, guid: 94300bef8b4bbfb4dbd10e9dad3e7ac6, type: 3}
|
||||
m_PlayOnAwake: 1
|
||||
m_Volume: 1
|
||||
m_Pitch: 1
|
||||
Loop: 1
|
||||
Mute: 0
|
||||
Spatialize: 0
|
||||
SpatializePostEffects: 0
|
||||
Priority: 128
|
||||
DopplerLevel: 1
|
||||
MinDistance: 1
|
||||
MaxDistance: 500
|
||||
Pan2D: 0
|
||||
rolloffMode: 0
|
||||
BypassEffects: 0
|
||||
BypassListenerEffects: 0
|
||||
BypassReverbZones: 0
|
||||
rolloffCustomCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
- serializedVersion: 3
|
||||
time: 1
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
panLevelCustomCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
spreadCustomCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 0
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
reverbZoneMixCustomCurve:
|
||||
serializedVersion: 2
|
||||
m_Curve:
|
||||
- serializedVersion: 3
|
||||
time: 0
|
||||
value: 1
|
||||
inSlope: 0
|
||||
outSlope: 0
|
||||
tangentMode: 0
|
||||
weightedMode: 0
|
||||
inWeight: 0.33333334
|
||||
outWeight: 0.33333334
|
||||
m_PreInfinity: 2
|
||||
m_PostInfinity: 2
|
||||
m_RotationOrder: 4
|
||||
--- !u!4 &1902048223
|
||||
Transform:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1902048219}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: 593, y: 240.5, z: 0}
|
||||
m_LocalScale: {x: 1, y: 1, z: 1}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &1902048224
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 1902048219}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: af6819c62fb95894485dace7bf3f0c4b, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Assembly-CSharp::BackGourndManager
|
||||
BG: {fileID: 8300000, guid: 94300bef8b4bbfb4dbd10e9dad3e7ac6, type: 3}
|
||||
--- !u!1 &1940342122
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -3278,6 +3811,7 @@ GameObject:
|
||||
- component: {fileID: 2036779152}
|
||||
- component: {fileID: 2036779151}
|
||||
- component: {fileID: 2036779150}
|
||||
- component: {fileID: 2036779153}
|
||||
m_Layer: 0
|
||||
m_Name: SoundEffectManager
|
||||
m_TagString: Untagged
|
||||
@@ -3312,30 +3846,22 @@ MonoBehaviour:
|
||||
- {fileID: 8300000, guid: f0e6d15a4e5f5d7478f9f666c67e5079, type: 3}
|
||||
- name: Ice Crack
|
||||
audioClips:
|
||||
- {fileID: 8300000, guid: 6441767e1c7fe6c4ebc01fa691f9d99b, type: 3}
|
||||
- {fileID: 8300000, guid: b3faeef07c98a824b94e3b279c12991a, type: 3}
|
||||
- name: Ice Push
|
||||
audioClips:
|
||||
- {fileID: 8300000, guid: ffee7b34b0132a54b9ffb7b8ce9023e0, type: 3}
|
||||
- name: Penguin Sound
|
||||
audioClips:
|
||||
- {fileID: 8300000, guid: f089dda9b4e4ee5459b0c508924da4e7, type: 3}
|
||||
- name: Walk
|
||||
- name: Slide
|
||||
audioClips:
|
||||
- {fileID: 8300000, guid: 68f9abc943ab26c4ab7e24916d16de27, type: 3}
|
||||
- {fileID: 8300000, guid: 2bb17bb4a8d5d8f439d066c05b80e92f, type: 3}
|
||||
- name: Win
|
||||
audioClips:
|
||||
- {fileID: 8300000, guid: a20ec42fa299fe443a2b51d8a27c7203, type: 3}
|
||||
- {fileID: 8300000, guid: 495af6dd9f83a3a4880dac8ca48188f6, type: 3}
|
||||
- {fileID: 8300000, guid: 49696eb97572bf946a581846bd0c97f0, type: 3}
|
||||
- name: Wind
|
||||
audioClips:
|
||||
- {fileID: 8300000, guid: 3c5dff61304476140958608b695b1b55, type: 3}
|
||||
- name: Watching
|
||||
- name: Pit
|
||||
audioClips:
|
||||
- {fileID: 8300000, guid: fa17c554439ccbb4eb4a792d4335967d, type: 3}
|
||||
- name: BG
|
||||
audioClips:
|
||||
- {fileID: 8300000, guid: 94300bef8b4bbfb4dbd10e9dad3e7ac6, type: 3}
|
||||
- {fileID: 8300000, guid: cb9df4df2c1086c41b80de160cca7d86, type: 3}
|
||||
--- !u!82 &2036779151
|
||||
AudioSource:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -3349,7 +3875,7 @@ AudioSource:
|
||||
m_audioClip: {fileID: 0}
|
||||
m_Resource: {fileID: 0}
|
||||
m_PlayOnAwake: 1
|
||||
m_Volume: 1
|
||||
m_Volume: 0.4
|
||||
m_Pitch: 1
|
||||
Loop: 0
|
||||
Mute: 0
|
||||
@@ -3448,6 +3974,19 @@ Transform:
|
||||
m_Children: []
|
||||
m_Father: {fileID: 0}
|
||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||
--- !u!114 &2036779153
|
||||
MonoBehaviour:
|
||||
m_ObjectHideFlags: 0
|
||||
m_CorrespondingSourceObject: {fileID: 0}
|
||||
m_PrefabInstance: {fileID: 0}
|
||||
m_PrefabAsset: {fileID: 0}
|
||||
m_GameObject: {fileID: 2036779149}
|
||||
m_Enabled: 1
|
||||
m_EditorHideFlags: 0
|
||||
m_Script: {fileID: 11500000, guid: 184172b3257bd764283336d08477bacd, type: 3}
|
||||
m_Name:
|
||||
m_EditorClassIdentifier: Assembly-CSharp::SoundEffectManager
|
||||
sfxSlider: {fileID: 1272165864}
|
||||
--- !u!1 &2083282006
|
||||
GameObject:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -3535,7 +4074,7 @@ Transform:
|
||||
m_GameObject: {fileID: 2083282006}
|
||||
serializedVersion: 2
|
||||
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
|
||||
m_LocalPosition: {x: -2.2, y: 0.81, z: 18.41}
|
||||
m_LocalPosition: {x: -1.4, y: 0.81, z: 18.41}
|
||||
m_LocalScale: {x: 6, y: 6, z: 6}
|
||||
m_ConstrainProportionsScale: 0
|
||||
m_Children:
|
||||
@@ -3560,6 +4099,8 @@ MonoBehaviour:
|
||||
bearTimer: {fileID: 827642026}
|
||||
bearAwareness: {fileID: 1034880021}
|
||||
thingstoReset: []
|
||||
BG: {fileID: 8300000, guid: 94300bef8b4bbfb4dbd10e9dad3e7ac6, type: 3}
|
||||
Awake: {fileID: 8300000, guid: fa17c554439ccbb4eb4a792d4335967d, type: 3}
|
||||
--- !u!65 &2083282012
|
||||
BoxCollider:
|
||||
m_ObjectHideFlags: 0
|
||||
@@ -3579,7 +4120,7 @@ BoxCollider:
|
||||
m_ProvidesContacts: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Size: {x: 1.58, y: 1.64, z: 1.55}
|
||||
m_Size: {x: 1.4, y: 1.64, z: 1.23}
|
||||
m_Center: {x: -0.09, y: 0, z: 0}
|
||||
--- !u!65 &2083282013
|
||||
BoxCollider:
|
||||
@@ -3600,7 +4141,7 @@ BoxCollider:
|
||||
m_ProvidesContacts: 0
|
||||
m_Enabled: 1
|
||||
serializedVersion: 3
|
||||
m_Size: {x: 1.58, y: 1.64, z: 1.55}
|
||||
m_Size: {x: 1.4, y: 1.64, z: 1.23}
|
||||
m_Center: {x: -0.09, y: 0, z: 0}
|
||||
--- !u!1 &2105121212
|
||||
GameObject:
|
||||
@@ -4822,3 +5363,4 @@ SceneRoots:
|
||||
- {fileID: 3261750014615689023}
|
||||
- {fileID: 2036779152}
|
||||
- {fileID: 741902675}
|
||||
- {fileID: 1902048223}
|
||||
|
||||
@@ -0,0 +1,42 @@
|
||||
using UnityEngine;
|
||||
|
||||
public class BackgroundManager : MonoBehaviour
|
||||
{
|
||||
private static AudioSource audioSource;
|
||||
public AudioClip BG;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
audioSource = GetComponent<AudioSource>();
|
||||
|
||||
}
|
||||
|
||||
void Start()
|
||||
{
|
||||
if (BG != null)
|
||||
{
|
||||
PlayBG(false,BG);
|
||||
}
|
||||
}
|
||||
|
||||
public static void PlayBG(bool resetSong, AudioClip clip = null)
|
||||
{
|
||||
if (clip != null)
|
||||
{
|
||||
audioSource.clip = clip;
|
||||
}
|
||||
if (audioSource.clip != null)
|
||||
{
|
||||
if (resetSong)
|
||||
{
|
||||
audioSource.Stop();
|
||||
}
|
||||
audioSource.Play();
|
||||
}
|
||||
}
|
||||
|
||||
public static void StopBG()
|
||||
{
|
||||
audioSource.Pause();
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: af6819c62fb95894485dace7bf3f0c4b
|
||||
@@ -24,7 +24,7 @@ public class SoundEffectLibrary : MonoBehaviour
|
||||
|
||||
public AudioClip GetRandomClip(string name)
|
||||
{
|
||||
if (!soundDictionary.ContainsKey(name))
|
||||
if (soundDictionary.ContainsKey(name))
|
||||
{
|
||||
List<AudioClip> audioClips = soundDictionary[name];
|
||||
if(audioClips.Count > 0)
|
||||
|
||||
@@ -0,0 +1,43 @@
|
||||
using System;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
|
||||
public class SoundEffectManager : MonoBehaviour
|
||||
{
|
||||
private static AudioSource audioSource;
|
||||
private static SoundEffectLibrary soundEffectLibrary;
|
||||
[SerializeField] private Slider sfxSlider;
|
||||
|
||||
private void Awake()
|
||||
{
|
||||
audioSource = GetComponent<AudioSource>();
|
||||
soundEffectLibrary = GetComponent<SoundEffectLibrary>();
|
||||
}
|
||||
|
||||
public static void Play(string soundName)
|
||||
{
|
||||
AudioClip audioClip = soundEffectLibrary.GetRandomClip(soundName);
|
||||
if (audioClip != null)
|
||||
{
|
||||
audioSource.PlayOneShot(audioClip);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
{
|
||||
sfxSlider.onValueChanged.AddListener(delegate {OnValueChanged();});
|
||||
}
|
||||
|
||||
public static void SetVolume(float volume)
|
||||
{
|
||||
audioSource.volume = volume;
|
||||
}
|
||||
|
||||
public void OnValueChanged()
|
||||
{
|
||||
SetVolume(sfxSlider.value);
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,2 @@
|
||||
fileFormatVersion: 2
|
||||
guid: 184172b3257bd764283336d08477bacd
|
||||
@@ -14,6 +14,8 @@ public class BearAwareness : MonoBehaviour
|
||||
public static event Action<float> HasWokenUp;
|
||||
|
||||
public float timeToWakeUp = 2f;
|
||||
|
||||
public AudioClip Awake;
|
||||
// Start is called once before the first execution of Update after the MonoBehaviour is created
|
||||
void Start()
|
||||
{
|
||||
@@ -36,6 +38,9 @@ public class BearAwareness : MonoBehaviour
|
||||
|
||||
if (awareness >= awarenessSlider.maxValue)
|
||||
{
|
||||
SoundEffectManager.Play("Alert");
|
||||
BackgroundManager.StopBG();
|
||||
BackgroundManager.PlayBG(true,Awake);
|
||||
StopAllCoroutines();
|
||||
Debug.Log("Bear is awake now!");
|
||||
HasWokenUp.Invoke(timeToWakeUp);
|
||||
@@ -52,6 +57,7 @@ public class BearAwareness : MonoBehaviour
|
||||
|
||||
awarenessSlider.value -= 2;
|
||||
awareness -= 2;
|
||||
SoundEffectManager.Play("Bear Sleep");
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,6 +15,9 @@ public class BearIsAwake : MonoBehaviour
|
||||
public PositionReset[] thingstoReset;
|
||||
|
||||
private bool isWaiting = false;
|
||||
|
||||
public AudioClip BG;
|
||||
public AudioClip Awake;
|
||||
private void Start()
|
||||
{
|
||||
BearAwareness.HasWokenUp += IsAwake;
|
||||
@@ -43,45 +46,90 @@ public class BearIsAwake : MonoBehaviour
|
||||
{
|
||||
yield return new WaitForSeconds(time);
|
||||
|
||||
Vector3 direction = Penguin.position - transform.position;
|
||||
float distance = direction.magnitude;
|
||||
direction.Normalize();
|
||||
|
||||
|
||||
//Vector3 direction = Penguin.position - transform.position;
|
||||
//float distance = direction.magnitude;
|
||||
//direction.Normalize();
|
||||
|
||||
float elapsed = 0f;
|
||||
|
||||
if (Physics.Raycast(transform.position, direction, out RaycastHit hit, distance))
|
||||
{
|
||||
Debug.Log("Getroffen: " + hit.collider.name);
|
||||
if (hit.collider.name == "StandUpCollider")
|
||||
{
|
||||
Debug.Log("Your Dead!");
|
||||
foreach (PositionReset things in thingstoReset)
|
||||
while (elapsed < 2f)
|
||||
{
|
||||
foreach (PositionReset things in thingstoReset)
|
||||
{
|
||||
if (things.GetComponent<PlayerMove>() != null)
|
||||
{
|
||||
things.Reset();
|
||||
Vector3 dir = things.transform.position - transform.position;
|
||||
float distance = dir.magnitude;
|
||||
|
||||
if (Physics.Raycast(transform.position, dir.normalized, out RaycastHit hit, distance))
|
||||
{
|
||||
Debug.Log($"Ray zu {things.name} trifft {hit.collider.name}");
|
||||
|
||||
if (hit.collider.name == "StandUpCollider")
|
||||
{
|
||||
Debug.Log("Your Dead!");
|
||||
foreach (PositionReset objekts in thingstoReset)
|
||||
{
|
||||
objekts.Reset();
|
||||
SoundEffectManager.Play("Fail");
|
||||
}
|
||||
|
||||
bearAwareness.awareness = 0;
|
||||
bearAwareness.awarenessSlider.value = 0;
|
||||
|
||||
wakingUp = false;
|
||||
timer = 0f;
|
||||
bearTimer.fillAmount = 0;
|
||||
}
|
||||
else if(!isWaiting)
|
||||
{
|
||||
Debug.Log("What?");
|
||||
StartCoroutine(DelayedAction());
|
||||
}
|
||||
}
|
||||
|
||||
Debug.DrawLine(transform.position, things.transform.position, Color.red);
|
||||
}
|
||||
|
||||
bearAwareness.awareness = 0;
|
||||
bearAwareness.awarenessSlider.value = 0;
|
||||
|
||||
wakingUp = false;
|
||||
timer = 0f;
|
||||
bearTimer.fillAmount = 0;
|
||||
}
|
||||
else if(!isWaiting)
|
||||
{
|
||||
Debug.Log("What?");
|
||||
StartCoroutine(DelayedAction());
|
||||
}
|
||||
}
|
||||
elapsed += Time.deltaTime;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
//if (Physics.Raycast(transform.position, direction, out RaycastHit hit, distance))
|
||||
//{
|
||||
// Debug.Log("Getroffen: " + hit.collider.name);
|
||||
// if (hit.collider.name == "StandUpCollider")
|
||||
// {
|
||||
// Debug.Log("Your Dead!");
|
||||
// foreach (PositionReset things in thingstoReset)
|
||||
// {
|
||||
// things.Reset();
|
||||
// }
|
||||
//
|
||||
// bearAwareness.awareness = 0;
|
||||
// bearAwareness.awarenessSlider.value = 0;
|
||||
//
|
||||
// wakingUp = false;
|
||||
// timer = 0f;
|
||||
// bearTimer.fillAmount = 0;
|
||||
// }
|
||||
// else if(!isWaiting)
|
||||
// {
|
||||
// Debug.Log("What?");
|
||||
// StartCoroutine(DelayedAction());
|
||||
// }
|
||||
//
|
||||
//
|
||||
//}
|
||||
|
||||
Debug.DrawLine(transform.position, Penguin.position, Color.red, 10f);
|
||||
}
|
||||
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
SoundEffectManager.Play("Alert");
|
||||
BackgroundManager.StopBG();
|
||||
BackgroundManager.PlayBG(true,Awake);
|
||||
bearAwareness.awareness = 50;
|
||||
bearAwareness.awarenessSlider.value = bearAwareness.awarenessSlider.maxValue;
|
||||
IsAwake(bearAwareness.timeToWakeUp);
|
||||
@@ -97,6 +145,8 @@ public class BearIsAwake : MonoBehaviour
|
||||
bearTimer.fillAmount = 0;
|
||||
isWaiting = false;
|
||||
Debug.Log("Back to Sleep");
|
||||
BackgroundManager.StopBG();
|
||||
BackgroundManager.PlayBG(false,BG);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,12 +5,15 @@ using UnityEngine.UI;
|
||||
public class Goal : MonoBehaviour
|
||||
{
|
||||
public GameObject WinUI;
|
||||
public AudioClip Win;
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
if (other.tag == "IceBlock")
|
||||
{
|
||||
Debug.Log("Win");
|
||||
WinUI.SetActive(true);
|
||||
BackgroundManager.StopBG();
|
||||
BackgroundManager.PlayBG(false,Win);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -20,6 +20,13 @@ public class IceBlockPush : MonoBehaviour
|
||||
}
|
||||
}
|
||||
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
if (other.GetComponent<CapsuleCollider>())
|
||||
{
|
||||
SoundEffectManager.Play("Ice Push");
|
||||
}
|
||||
}
|
||||
private void Push(Vector3 position)
|
||||
{
|
||||
Vector3 diffrenceVector = rb.transform.position - position;
|
||||
@@ -33,5 +40,6 @@ public class IceBlockPush : MonoBehaviour
|
||||
//Debug.DrawRay(transform.position, directionVector * 3f, Color.red);
|
||||
|
||||
rb.AddForce(directionVector * contactForce, ForceMode.Impulse);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -10,5 +10,14 @@ public class Noice : MonoBehaviour
|
||||
{
|
||||
if (other.isTrigger) return;
|
||||
OnMakeNoice.Invoke(noice);
|
||||
if (this.GetComponent<BoxCollider>() != null)
|
||||
{
|
||||
SoundEffectManager.Play("Ice Crack");
|
||||
}
|
||||
else
|
||||
{
|
||||
SoundEffectManager.Play("Crash");
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -8,6 +8,7 @@ public class Pit : MonoBehaviour
|
||||
private void OnTriggerEnter(Collider other)
|
||||
{
|
||||
if (other.isTrigger) return;
|
||||
SoundEffectManager.Play("Pit");
|
||||
startmass = other.GetComponent<Rigidbody>().mass;
|
||||
other.GetComponent<Rigidbody>().mass = 100;
|
||||
other.GetComponent<Rigidbody>().mass = startmass;
|
||||
|
||||
@@ -3,6 +3,7 @@ using System.Collections;
|
||||
using Unity.VisualScripting;
|
||||
using UnityEngine;
|
||||
using UnityEngine.UI;
|
||||
using Random = System.Random;
|
||||
|
||||
public class PlayerMove : MonoBehaviour
|
||||
{
|
||||
@@ -34,6 +35,8 @@ public class PlayerMove : MonoBehaviour
|
||||
{
|
||||
rb = GetComponent<Rigidbody>();
|
||||
standUp = GetComponentInChildren<StandUpCollider>();
|
||||
|
||||
StartCoroutine(MakeSound(7f));
|
||||
}
|
||||
|
||||
void Update()
|
||||
@@ -113,6 +116,7 @@ public class PlayerMove : MonoBehaviour
|
||||
{
|
||||
StartCoroutine(Step(0.3f));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
@@ -135,5 +139,15 @@ public class PlayerMove : MonoBehaviour
|
||||
|
||||
}
|
||||
|
||||
|
||||
IEnumerator MakeSound(float delay)
|
||||
{
|
||||
|
||||
while (true)
|
||||
{
|
||||
yield return new WaitForSeconds(delay);
|
||||
|
||||
SoundEffectManager.Play("Penguin Sound");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user