sleepingBear

Sanel
JoansLink00 3 months ago
parent 4731404294
commit b1b3332b49

@ -0,0 +1,115 @@
fileFormatVersion: 2
guid: 6d94ccefa1e04ee49b529cb5edff2a1e
ModelImporter:
serializedVersion: 24200
internalIDToNameTable: []
externalObjects:
- first:
type: UnityEngine:Material
assembly: UnityEngine.CoreModule
name: Material
second: {fileID: 2100000, guid: e780ed95d4c88d842a5eed92c1761569, type: 2}
materials:
materialImportMode: 2
materialName: 0
materialSearch: 1
materialLocation: 1
animations:
legacyGenerateAnimations: 4
bakeSimulation: 0
resampleCurves: 1
optimizeGameObjects: 0
removeConstantScaleCurves: 0
motionNodeName:
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
importPhysicalCameras: 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
generateMeshLods: 0
meshLodGenerationFlags: 0
maximumMeshLod: -1
meshOptimizationFlags: -1
indexFormat: 0
secondaryUVAngleDistortion: 8
secondaryUVAreaDistortion: 15.000001
secondaryUVHardAngle: 88
secondaryUVMarginMethod: 1
secondaryUVMinLightmapResolution: 40
secondaryUVMinObjectScale: 1
secondaryUVPackMargin: 4
useFileScale: 1
strictVertexDataChecks: 0
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
importBlendShapeDeformPercent: 1
remapMaterialsIfMaterialImportModeIsNone: 0
additionalBone: 0
userData:
assetBundleName:
assetBundleVariant:

@ -17,7 +17,6 @@ public class BearAwareness : MonoBehaviour
public AudioClip Awake;
public static bool isPaused = false;
// Start is called once before the first execution of Update after the MonoBehaviour is created
void Start()
{
@ -40,7 +39,6 @@ public class BearAwareness : MonoBehaviour
if (awarenessSlider.value >= awarenessSlider.maxValue)
{
isPaused = true;
SoundEffectManager.Play("Alert");
BackgroundManager.StopBG();
BackgroundManager.PlayBG(true,Awake);
@ -54,13 +52,6 @@ public class BearAwareness : MonoBehaviour
while (true)
{
Debug.Log(isPaused);
while (isPaused)
{
Debug.Log("Pause");
}
yield return new WaitForSeconds(delay);
awarenessSlider.value -= 2;

@ -18,6 +18,10 @@ public class BearIsAwake : MonoBehaviour
public AudioClip BG;
public AudioClip Awake;
public GameObject sleepingBear;
public GameObject awakeBear;
private void Start()
{
BearAwareness.HasWokenUp += IsAwake;
@ -33,17 +37,22 @@ public class BearIsAwake : MonoBehaviour
{
timer += Time.deltaTime;
bearTimer.fillAmount = timer / bearAwareness.timeToWakeUp;
bearAwareness.awarenessSlider.value = bearAwareness.awarenessSlider.maxValue;
}
}
public void IsAwake(float time)
{
wakingUp = true;
StartCoroutine(SleepIsOver(time));
sleepingBear.SetActive(false);
awakeBear.SetActive(true);
}
IEnumerator SleepIsOver(float time)
{
yield return new WaitForSeconds(time);
//Vector3 direction = Penguin.position - transform.position;
@ -96,7 +105,8 @@ public class BearIsAwake : MonoBehaviour
elapsed += Time.deltaTime;
}
BearAwareness.isPaused = false;
sleepingBear.SetActive(true);
awakeBear.SetActive(false);
//if (Physics.Raycast(transform.position, direction, out RaycastHit hit, distance))
//{
@ -130,7 +140,6 @@ public class BearIsAwake : MonoBehaviour
private void OnTriggerEnter(Collider other)
{
BearAwareness.isPaused = true;
SoundEffectManager.Play("Alert");
BackgroundManager.StopBG();
BackgroundManager.PlayBG(true,Awake);

@ -2274,6 +2274,10 @@ PrefabInstance:
propertyPath: m_Name
value: "eisb\xE4r"
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 5776a8cd06290f7418d23acb884f16d8, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects:
- {fileID: 65702495048144492, guid: 5776a8cd06290f7418d23acb884f16d8, type: 3}
@ -2522,6 +2526,11 @@ Transform:
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &907966980 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 919132149155446097, guid: 5776a8cd06290f7418d23acb884f16d8, type: 3}
m_PrefabInstance: {fileID: 713922553}
m_PrefabAsset: {fileID: 0}
--- !u!4 &917971034 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 43696c3af1477b84788aec3c0f33a019, type: 3}
@ -3552,6 +3561,16 @@ Transform:
m_Children: []
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1559370101 stripped
GameObject:
m_CorrespondingSourceObject: {fileID: 919132149155446097, guid: 6d94ccefa1e04ee49b529cb5edff2a1e, type: 3}
m_PrefabInstance: {fileID: 1824166223}
m_PrefabAsset: {fileID: 0}
--- !u!4 &1559370102 stripped
Transform:
m_CorrespondingSourceObject: {fileID: -8679921383154817045, guid: 6d94ccefa1e04ee49b529cb5edff2a1e, type: 3}
m_PrefabInstance: {fileID: 1824166223}
m_PrefabAsset: {fileID: 0}
--- !u!1 &1604116870
GameObject:
m_ObjectHideFlags: 0
@ -3733,6 +3752,80 @@ PrefabInstance:
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 4c591588d29050a46ae3b8c3379016ac, type: 3}
--- !u!1001 &1824166223
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
serializedVersion: 3
m_TransformParent: {fileID: 2083282010}
m_Modifications:
- target: {fileID: -8679921383154817045, guid: 6d94ccefa1e04ee49b529cb5edff2a1e, type: 3}
propertyPath: m_LocalScale.x
value: 0.31833333
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 6d94ccefa1e04ee49b529cb5edff2a1e, type: 3}
propertyPath: m_LocalScale.y
value: 0.31833333
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 6d94ccefa1e04ee49b529cb5edff2a1e, type: 3}
propertyPath: m_LocalScale.z
value: 0.31833333
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 6d94ccefa1e04ee49b529cb5edff2a1e, type: 3}
propertyPath: m_LocalPosition.x
value: -0.07833334
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 6d94ccefa1e04ee49b529cb5edff2a1e, type: 3}
propertyPath: m_LocalPosition.y
value: 0.196
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 6d94ccefa1e04ee49b529cb5edff2a1e, type: 3}
propertyPath: m_LocalPosition.z
value: -0.26333332
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 6d94ccefa1e04ee49b529cb5edff2a1e, type: 3}
propertyPath: m_LocalRotation.w
value: 0.30851904
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 6d94ccefa1e04ee49b529cb5edff2a1e, type: 3}
propertyPath: m_LocalRotation.x
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 6d94ccefa1e04ee49b529cb5edff2a1e, type: 3}
propertyPath: m_LocalRotation.y
value: -0.9512182
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 6d94ccefa1e04ee49b529cb5edff2a1e, type: 3}
propertyPath: m_LocalRotation.z
value: -0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 6d94ccefa1e04ee49b529cb5edff2a1e, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 6d94ccefa1e04ee49b529cb5edff2a1e, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: -144.06
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 6d94ccefa1e04ee49b529cb5edff2a1e, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: -8679921383154817045, guid: 6d94ccefa1e04ee49b529cb5edff2a1e, type: 3}
propertyPath: m_ConstrainProportionsScale
value: 1
objectReference: {fileID: 0}
- target: {fileID: 919132149155446097, guid: 6d94ccefa1e04ee49b529cb5edff2a1e, type: 3}
propertyPath: m_Name
value: "eisb\xE4r1riggedsleeping pose"
objectReference: {fileID: 0}
m_RemovedComponents: []
m_RemovedGameObjects:
- {fileID: 65702495048144492, guid: 6d94ccefa1e04ee49b529cb5edff2a1e, type: 3}
m_AddedGameObjects: []
m_AddedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 6d94ccefa1e04ee49b529cb5edff2a1e, type: 3}
--- !u!1 &1848775650
GameObject:
m_ObjectHideFlags: 0
@ -4462,6 +4555,7 @@ Transform:
- {fileID: 713922554}
- {fileID: 2105121213}
- {fileID: 691574954}
- {fileID: 1559370102}
m_Father: {fileID: 0}
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &2083282011
@ -4482,6 +4576,8 @@ MonoBehaviour:
thingstoReset: []
BG: {fileID: 8300000, guid: 94300bef8b4bbfb4dbd10e9dad3e7ac6, type: 3}
Awake: {fileID: 8300000, guid: fa17c554439ccbb4eb4a792d4335967d, type: 3}
sleepingBear: {fileID: 1559370101}
awakeBear: {fileID: 907966980}
--- !u!65 &2083282012
BoxCollider:
m_ObjectHideFlags: 0

File diff suppressed because it is too large Load Diff

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: 17ef9f5ac4ab58d44a5ac48f15579b2c
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:
Loading…
Cancel
Save