Pull request #31: Added gain currency animation; Added EventManager; Fixes to Dimensions prefabs

Merge in CEGJ/creative-jam-20 from integration2 to main

* commit '860ed467b082a174310ef720e6f3124f4848da22':
  Added gain currency animation; Added EventManager; Fixes to Dimensions prefabs
This commit is contained in:
William Gingras 01 2022-05-15 19:01:45 +00:00
commit f4d7ae18a5
52 changed files with 4098 additions and 154 deletions

View File

@ -0,0 +1,124 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!1101 &-7229402008758285865
AnimatorStateTransition:
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name:
m_Conditions: []
m_DstStateMachine: {fileID: 0}
m_DstState: {fileID: -1671697552793531922}
m_Solo: 0
m_Mute: 0
m_IsExit: 0
serializedVersion: 3
m_TransitionDuration: 0.25
m_TransitionOffset: 0
m_ExitTime: 0.7
m_HasExitTime: 1
m_HasFixedDuration: 1
m_InterruptionSource: 0
m_OrderedInterruption: 1
m_CanTransitionToSelf: 1
--- !u!1107 &-7060160769267493586
AnimatorStateMachine:
serializedVersion: 6
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: Base Layer
m_ChildStates:
- serializedVersion: 1
m_State: {fileID: 7953852702391680995}
m_Position: {x: 270, y: 30, z: 0}
- serializedVersion: 1
m_State: {fileID: -1671697552793531922}
m_Position: {x: 270, y: 100, z: 0}
m_ChildStateMachines: []
m_AnyStateTransitions: []
m_EntryTransitions: []
m_StateMachineTransitions: {}
m_StateMachineBehaviours: []
m_AnyStatePosition: {x: 50, y: 20, z: 0}
m_EntryPosition: {x: 50, y: 120, z: 0}
m_ExitPosition: {x: 800, y: 120, z: 0}
m_ParentStateMachinePosition: {x: 800, y: 20, z: 0}
m_DefaultState: {fileID: -1671697552793531922}
--- !u!1102 &-1671697552793531922
AnimatorState:
serializedVersion: 6
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: empty
m_Speed: 1
m_CycleOffset: 0
m_Transitions: []
m_StateMachineBehaviours: []
m_Position: {x: 50, y: 50, z: 0}
m_IKOnFeet: 0
m_WriteDefaultValues: 1
m_Mirror: 0
m_SpeedParameterActive: 0
m_MirrorParameterActive: 0
m_CycleOffsetParameterActive: 0
m_TimeParameterActive: 0
m_Motion: {fileID: 0}
m_Tag:
m_SpeedParameter:
m_MirrorParameter:
m_CycleOffsetParameter:
m_TimeParameter:
--- !u!91 &9100000
AnimatorController:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: CurrencyGain
serializedVersion: 5
m_AnimatorParameters: []
m_AnimatorLayers:
- serializedVersion: 5
m_Name: Base Layer
m_StateMachine: {fileID: -7060160769267493586}
m_Mask: {fileID: 0}
m_Motions: []
m_Behaviours: []
m_BlendingMode: 0
m_SyncedLayerIndex: -1
m_DefaultWeight: 0
m_IKPass: 0
m_SyncedLayerAffectsTiming: 0
m_Controller: {fileID: 9100000}
--- !u!1102 &7953852702391680995
AnimatorState:
serializedVersion: 6
m_ObjectHideFlags: 1
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: CurrencyGain_Play
m_Speed: 1
m_CycleOffset: 0
m_Transitions:
- {fileID: -7229402008758285865}
m_StateMachineBehaviours: []
m_Position: {x: 50, y: 50, z: 0}
m_IKOnFeet: 0
m_WriteDefaultValues: 1
m_Mirror: 0
m_SpeedParameterActive: 0
m_MirrorParameterActive: 0
m_CycleOffsetParameterActive: 0
m_TimeParameterActive: 0
m_Motion: {fileID: 7400000, guid: d07faf733eef4bd41943be0273e87745, type: 2}
m_Tag:
m_SpeedParameter:
m_MirrorParameter:
m_CycleOffsetParameter:
m_TimeParameter:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: b879c2ddbca910c4da8e00369d921db2
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 9100000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,197 @@
%YAML 1.1
%TAG !u! tag:unity3d.com,2011:
--- !u!74 &7400000
AnimationClip:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_Name: CurrencyGain_Play
serializedVersion: 6
m_Legacy: 0
m_Compressed: 0
m_UseHighQualityCurve: 1
m_RotationCurves: []
m_CompressedRotationCurves: []
m_EulerCurves: []
m_PositionCurves: []
m_ScaleCurves: []
m_FloatCurves:
- curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 348.66666
inSlope: 0
outSlope: 0
tangentMode: 136
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 0.6166667
value: 360.5
inSlope: 0
outSlope: 0
tangentMode: 136
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
attribute: m_AnchoredPosition.y
path:
classID: 224
script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 136
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 0.56666666
value: 1
inSlope: 0
outSlope: 0
tangentMode: 136
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 0.8333333
value: 0
inSlope: 0
outSlope: 0
tangentMode: 136
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
attribute: m_Alpha
path:
classID: 225
script: {fileID: 0}
m_PPtrCurves: []
m_SampleRate: 60
m_WrapMode: 0
m_Bounds:
m_Center: {x: 0, y: 0, z: 0}
m_Extent: {x: 0, y: 0, z: 0}
m_ClipBindingConstant:
genericBindings:
- serializedVersion: 2
path: 0
attribute: 538195251
script: {fileID: 0}
typeID: 224
customType: 28
isPPtrCurve: 0
- serializedVersion: 2
path: 0
attribute: 1574349066
script: {fileID: 0}
typeID: 225
customType: 0
isPPtrCurve: 0
pptrCurveMapping: []
m_AnimationClipSettings:
serializedVersion: 2
m_AdditiveReferencePoseClip: {fileID: 0}
m_AdditiveReferencePoseTime: 0
m_StartTime: 0
m_StopTime: 0.8333333
m_OrientationOffsetY: 0
m_Level: 0
m_CycleOffset: 0
m_HasAdditiveReferencePose: 0
m_LoopTime: 0
m_LoopBlend: 0
m_LoopBlendOrientation: 0
m_LoopBlendPositionY: 0
m_LoopBlendPositionXZ: 0
m_KeepOriginalOrientation: 0
m_KeepOriginalPositionY: 1
m_KeepOriginalPositionXZ: 0
m_HeightFromFeet: 0
m_Mirror: 0
m_EditorCurves:
- curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 348.66666
inSlope: 0
outSlope: 0
tangentMode: 136
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 0.6166667
value: 360.5
inSlope: 0
outSlope: 0
tangentMode: 136
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
attribute: m_AnchoredPosition.y
path:
classID: 224
script: {fileID: 0}
- curve:
serializedVersion: 2
m_Curve:
- serializedVersion: 3
time: 0
value: 1
inSlope: 0
outSlope: 0
tangentMode: 136
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 0.56666666
value: 1
inSlope: 0
outSlope: 0
tangentMode: 136
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
- serializedVersion: 3
time: 0.8333333
value: 0
inSlope: 0
outSlope: 0
tangentMode: 136
weightedMode: 0
inWeight: 0.33333334
outWeight: 0.33333334
m_PreInfinity: 2
m_PostInfinity: 2
m_RotationOrder: 4
attribute: m_Alpha
path:
classID: 225
script: {fileID: 0}
m_EulerEditorCurves: []
m_HasGenericRootTransform: 0
m_HasMotionFloatCurves: 0
m_Events: []

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: d07faf733eef4bd41943be0273e87745
NativeFormatImporter:
externalObjects: {}
mainObjectFileID: 7400000
userData:
assetBundleName:
assetBundleVariant:

View File

@ -2422,7 +2422,7 @@ GameObject:
- component: {fileID: 1798967697912080973} - component: {fileID: 1798967697912080973}
- component: {fileID: 8522344775109786027} - component: {fileID: 8522344775109786027}
- component: {fileID: 5528713942592985617} - component: {fileID: 5528713942592985617}
m_Layer: 0 m_Layer: 7
m_Name: DIMENSION_CONTROLLER m_Name: DIMENSION_CONTROLLER
m_TagString: Untagged m_TagString: Untagged
m_Icon: {fileID: 0} m_Icon: {fileID: 0}

View File

@ -137,7 +137,7 @@ GameObject:
- component: {fileID: 4923766802100698631} - component: {fileID: 4923766802100698631}
- component: {fileID: 6538802797101006760} - component: {fileID: 6538802797101006760}
- component: {fileID: 1793164356031741670} - component: {fileID: 1793164356031741670}
m_Layer: 0 m_Layer: 8
m_Name: DIMENSION_CONTROLLER m_Name: DIMENSION_CONTROLLER
m_TagString: Untagged m_TagString: Untagged
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
@ -235,7 +235,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 5dfc667192d2c2641bbd86b84f6dea74, type: 3} m_Script: {fileID: 11500000, guid: 5dfc667192d2c2641bbd86b84f6dea74, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
dimensionId: 2 dimensionId: 1
--- !u!1 &2673668038071217881 --- !u!1 &2673668038071217881
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

View File

@ -1330,7 +1330,7 @@ GameObject:
- component: {fileID: 2307911361203150439} - component: {fileID: 2307911361203150439}
- component: {fileID: 3658960410802415625} - component: {fileID: 3658960410802415625}
- component: {fileID: 1714981871496760148} - component: {fileID: 1714981871496760148}
m_Layer: 0 m_Layer: 9
m_Name: DIMENSION_CONTROLLER m_Name: DIMENSION_CONTROLLER
m_TagString: Untagged m_TagString: Untagged
m_Icon: {fileID: 0} m_Icon: {fileID: 0}
@ -1428,7 +1428,7 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 5dfc667192d2c2641bbd86b84f6dea74, type: 3} m_Script: {fileID: 11500000, guid: 5dfc667192d2c2641bbd86b84f6dea74, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
dimensionId: 3 dimensionId: 2
--- !u!1 &8570257711496401826 --- !u!1 &8570257711496401826
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0

File diff suppressed because it is too large Load Diff

View File

@ -0,0 +1,7 @@
fileFormatVersion: 2
guid: bf9fd2daef00cee428455f47c5f83aec
PrefabImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -219,7 +219,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 10 m_RootOrder: 12
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &160686337 --- !u!1 &160686337
GameObject: GameObject:
@ -462,8 +462,192 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 14 m_RootOrder: 16
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &231012779
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 231012780}
- component: {fileID: 231012782}
- component: {fileID: 231012781}
- component: {fileID: 231012783}
m_Layer: 5
m_Name: currency_gain
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &231012780
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 231012779}
m_LocalRotation: {x: -0, y: -0, z: -0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 1.05049, y: 1.05049, z: 1.05049}
m_ConstrainProportionsScale: 0
m_Children:
- {fileID: 2081597136}
- {fileID: 556811425}
m_Father: {fileID: 1653425083}
m_RootOrder: 0
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
m_AnchorMin: {x: 0, y: 0}
m_AnchorMax: {x: 0, y: 0}
m_AnchoredPosition: {x: 344.1333, y: 348.66666}
m_SizeDelta: {x: 100, y: 49.4343}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!95 &231012781
Animator:
serializedVersion: 4
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 231012779}
m_Enabled: 1
m_Avatar: {fileID: 0}
m_Controller: {fileID: 9100000, guid: b879c2ddbca910c4da8e00369d921db2, type: 2}
m_CullingMode: 0
m_UpdateMode: 0
m_ApplyRootMotion: 0
m_LinearVelocityBlending: 0
m_StabilizeFeet: 0
m_WarningMessage:
m_HasTransformHierarchy: 1
m_AllowConstantClipSamplingOptimization: 1
m_KeepAnimatorControllerStateOnDisable: 0
--- !u!225 &231012782
CanvasGroup:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 231012779}
m_Enabled: 1
m_Alpha: 0
m_Interactable: 1
m_BlocksRaycasts: 0
m_IgnoreParentGroups: 0
--- !u!114 &231012783
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 231012779}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 23cb955f35633a8489b9a71a55546bd2, type: 3}
m_Name:
m_EditorClassIdentifier:
anim: {fileID: 231012781}
txt_currencyAmountGained: {fileID: 2081597137}
--- !u!1001 &233929192
PrefabInstance:
m_ObjectHideFlags: 0
serializedVersion: 2
m_Modification:
m_TransformParent: {fileID: 0}
m_Modifications:
- target: {fileID: 8151289621544470738, guid: bf9fd2daef00cee428455f47c5f83aec, type: 3}
propertyPath: m_Pivot.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8151289621544470738, guid: bf9fd2daef00cee428455f47c5f83aec, type: 3}
propertyPath: m_Pivot.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8151289621544470738, guid: bf9fd2daef00cee428455f47c5f83aec, type: 3}
propertyPath: m_RootOrder
value: 4
objectReference: {fileID: 0}
- target: {fileID: 8151289621544470738, guid: bf9fd2daef00cee428455f47c5f83aec, type: 3}
propertyPath: m_AnchorMax.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8151289621544470738, guid: bf9fd2daef00cee428455f47c5f83aec, type: 3}
propertyPath: m_AnchorMax.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8151289621544470738, guid: bf9fd2daef00cee428455f47c5f83aec, type: 3}
propertyPath: m_AnchorMin.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8151289621544470738, guid: bf9fd2daef00cee428455f47c5f83aec, type: 3}
propertyPath: m_AnchorMin.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8151289621544470738, guid: bf9fd2daef00cee428455f47c5f83aec, type: 3}
propertyPath: m_SizeDelta.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8151289621544470738, guid: bf9fd2daef00cee428455f47c5f83aec, type: 3}
propertyPath: m_SizeDelta.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8151289621544470738, guid: bf9fd2daef00cee428455f47c5f83aec, type: 3}
propertyPath: m_LocalPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8151289621544470738, guid: bf9fd2daef00cee428455f47c5f83aec, type: 3}
propertyPath: m_LocalPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8151289621544470738, guid: bf9fd2daef00cee428455f47c5f83aec, type: 3}
propertyPath: m_LocalPosition.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8151289621544470738, guid: bf9fd2daef00cee428455f47c5f83aec, type: 3}
propertyPath: m_LocalRotation.w
value: 1
objectReference: {fileID: 0}
- target: {fileID: 8151289621544470738, guid: bf9fd2daef00cee428455f47c5f83aec, type: 3}
propertyPath: m_LocalRotation.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8151289621544470738, guid: bf9fd2daef00cee428455f47c5f83aec, type: 3}
propertyPath: m_LocalRotation.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8151289621544470738, guid: bf9fd2daef00cee428455f47c5f83aec, type: 3}
propertyPath: m_LocalRotation.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8151289621544470738, guid: bf9fd2daef00cee428455f47c5f83aec, type: 3}
propertyPath: m_AnchoredPosition.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8151289621544470738, guid: bf9fd2daef00cee428455f47c5f83aec, type: 3}
propertyPath: m_AnchoredPosition.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8151289621544470738, guid: bf9fd2daef00cee428455f47c5f83aec, type: 3}
propertyPath: m_LocalEulerAnglesHint.x
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8151289621544470738, guid: bf9fd2daef00cee428455f47c5f83aec, type: 3}
propertyPath: m_LocalEulerAnglesHint.y
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8151289621544470738, guid: bf9fd2daef00cee428455f47c5f83aec, type: 3}
propertyPath: m_LocalEulerAnglesHint.z
value: 0
objectReference: {fileID: 0}
- target: {fileID: 8151289621544470750, guid: bf9fd2daef00cee428455f47c5f83aec, type: 3}
propertyPath: m_Name
value: CanvasPauseMenu
objectReference: {fileID: 0}
m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: bf9fd2daef00cee428455f47c5f83aec, type: 3}
--- !u!1 &324600176 --- !u!1 &324600176
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -588,7 +772,7 @@ PrefabInstance:
m_Modifications: m_Modifications:
- target: {fileID: 4834061106301780288, guid: 03bebbba108d4de4c9067425294d4775, type: 3} - target: {fileID: 4834061106301780288, guid: 03bebbba108d4de4c9067425294d4775, type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 6 value: 8
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 4834061106301780288, guid: 03bebbba108d4de4c9067425294d4775, type: 3} - target: {fileID: 4834061106301780288, guid: 03bebbba108d4de4c9067425294d4775, type: 3}
propertyPath: m_LocalPosition.x propertyPath: m_LocalPosition.x
@ -634,6 +818,10 @@ PrefabInstance:
propertyPath: m_Name propertyPath: m_Name
value: enemy1 value: enemy1
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 4834061106301780291, guid: 03bebbba108d4de4c9067425294d4775, type: 3}
propertyPath: m_IsActive
value: 0
objectReference: {fileID: 0}
- target: {fileID: 6113853661072388009, guid: 03bebbba108d4de4c9067425294d4775, type: 3} - target: {fileID: 6113853661072388009, guid: 03bebbba108d4de4c9067425294d4775, type: 3}
propertyPath: looping propertyPath: looping
value: 0 value: 0
@ -652,6 +840,82 @@ PrefabInstance:
objectReference: {fileID: 0} objectReference: {fileID: 0}
m_RemovedComponents: [] m_RemovedComponents: []
m_SourcePrefab: {fileID: 100100000, guid: 03bebbba108d4de4c9067425294d4775, type: 3} m_SourcePrefab: {fileID: 100100000, guid: 03bebbba108d4de4c9067425294d4775, type: 3}
--- !u!1 &556811424
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 556811425}
- component: {fileID: 556811427}
- component: {fileID: 556811426}
m_Layer: 5
m_Name: icon_currency
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &556811425
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 556811424}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 0, y: 0, z: 0}
m_LocalScale: {x: 0.69948, y: 0.69948, z: 0.69948}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 231012780}
m_RootOrder: 1
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: 17.2, y: -1.7}
m_SizeDelta: {x: 33, y: 48}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &556811426
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 556811424}
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: 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: 21300000, guid: 21c30dc777e03124197bd55c0f6c6b1a, type: 3}
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!222 &556811427
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 556811424}
m_CullTransparentMesh: 1
--- !u!1 &644668651 --- !u!1 &644668651
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -748,7 +1012,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 12 m_RootOrder: 14
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &655620976 --- !u!1001 &655620976
PrefabInstance: PrefabInstance:
@ -1049,7 +1313,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 13 m_RootOrder: 15
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &1164703813 --- !u!1001 &1164703813
PrefabInstance: PrefabInstance:
@ -1058,6 +1322,10 @@ PrefabInstance:
m_Modification: m_Modification:
m_TransformParent: {fileID: 1226385909} m_TransformParent: {fileID: 1226385909}
m_Modifications: m_Modifications:
- target: {fileID: 1793164356031741670, guid: c6e211178d3ea1546899914e1452b290, type: 3}
propertyPath: dimensionId
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5015426419719319481, guid: c6e211178d3ea1546899914e1452b290, type: 3} - target: {fileID: 5015426419719319481, guid: c6e211178d3ea1546899914e1452b290, type: 3}
propertyPath: m_Layer propertyPath: m_Layer
value: 8 value: 8
@ -1162,6 +1430,10 @@ PrefabInstance:
propertyPath: m_Layer propertyPath: m_Layer
value: 8 value: 8
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 5015426421145494694, guid: c6e211178d3ea1546899914e1452b290, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 5015426421163371973, guid: c6e211178d3ea1546899914e1452b290, type: 3} - target: {fileID: 5015426421163371973, guid: c6e211178d3ea1546899914e1452b290, type: 3}
propertyPath: m_Layer propertyPath: m_Layer
value: 8 value: 8
@ -1235,6 +1507,10 @@ PrefabInstance:
m_Modification: m_Modification:
m_TransformParent: {fileID: 1226385909} m_TransformParent: {fileID: 1226385909}
m_Modifications: m_Modifications:
- target: {fileID: 1714981871496760148, guid: 9f3415896428db647aa49abdf733b2f7, type: 3}
propertyPath: dimensionId
value: 2
objectReference: {fileID: 0}
- target: {fileID: 3716208029932851166, guid: 9f3415896428db647aa49abdf733b2f7, type: 3} - target: {fileID: 3716208029932851166, guid: 9f3415896428db647aa49abdf733b2f7, type: 3}
propertyPath: m_Layer propertyPath: m_Layer
value: 9 value: 9
@ -1382,7 +1658,7 @@ Transform:
- {fileID: 1164703814} - {fileID: 1164703814}
- {fileID: 1177878285} - {fileID: 1177878285}
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 5 m_RootOrder: 7
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1281989144 --- !u!1 &1281989144
GameObject: GameObject:
@ -1480,7 +1756,51 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 11 m_RootOrder: 13
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1359763299
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1359763301}
- component: {fileID: 1359763300}
m_Layer: 0
m_Name: EventManager
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1359763300
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1359763299}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: e14aeb87374c41409dd86aed505571c4, type: 3}
m_Name:
m_EditorClassIdentifier:
--- !u!4 &1359763301
Transform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1359763299}
m_LocalRotation: {x: 0, y: 0, z: 0, w: 1}
m_LocalPosition: {x: 361.24112, y: 329.11893, z: 0.95288086}
m_LocalScale: {x: 1, y: 1, z: 1}
m_ConstrainProportionsScale: 0
m_Children: []
m_Father: {fileID: 0}
m_RootOrder: 18
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &1494793844 --- !u!1001 &1494793844
PrefabInstance: PrefabInstance:
@ -1632,8 +1952,109 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 9 m_RootOrder: 11
m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0} m_LocalEulerAnglesHint: {x: 50, y: -30, z: 0}
--- !u!1 &1653425079
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 1653425083}
- component: {fileID: 1653425082}
- component: {fileID: 1653425081}
- component: {fileID: 1653425080}
m_Layer: 5
m_Name: Canvas
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!114 &1653425080
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1653425079}
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 &1653425081
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1653425079}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: 0cd44c1031e13a943bb63640046fad76, type: 3}
m_Name:
m_EditorClassIdentifier:
m_UiScaleMode: 0
m_ReferencePixelsPerUnit: 100
m_ScaleFactor: 1
m_ReferenceResolution: {x: 800, y: 600}
m_ScreenMatchMode: 0
m_MatchWidthOrHeight: 0
m_PhysicalUnit: 3
m_FallbackScreenDPI: 96
m_DefaultSpriteDPI: 96
m_DynamicPixelsPerUnit: 1
m_PresetInfoIsWorld: 0
--- !u!223 &1653425082
Canvas:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1653425079}
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: 25
m_SortingLayerID: 0
m_SortingOrder: 0
m_TargetDisplay: 0
--- !u!224 &1653425083
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 1653425079}
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_ConstrainProportionsScale: 0
m_Children:
- {fileID: 231012780}
m_Father: {fileID: 0}
m_RootOrder: 6
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}
--- !u!1 &1698949870 --- !u!1 &1698949870
GameObject: GameObject:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -1760,7 +2181,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 15 m_RootOrder: 17
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1 &1707066773 --- !u!1 &1707066773
GameObject: GameObject:
@ -1959,7 +2380,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 8 m_RootOrder: 10
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!1001 &1854821313 --- !u!1001 &1854821313
PrefabInstance: PrefabInstance:
@ -2072,6 +2493,10 @@ PrefabInstance:
propertyPath: m_Layer propertyPath: m_Layer
value: 7 value: 7
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 2398580280527440454, guid: ff01e9d7f27785a4fba5bdc20964eba4, type: 3}
propertyPath: m_IsActive
value: 1
objectReference: {fileID: 0}
- target: {fileID: 2398580280545033005, guid: ff01e9d7f27785a4fba5bdc20964eba4, type: 3} - target: {fileID: 2398580280545033005, guid: ff01e9d7f27785a4fba5bdc20964eba4, type: 3}
propertyPath: m_Layer propertyPath: m_Layer
value: 7 value: 7
@ -2274,7 +2699,7 @@ Transform:
m_ConstrainProportionsScale: 0 m_ConstrainProportionsScale: 0
m_Children: [] m_Children: []
m_Father: {fileID: 0} m_Father: {fileID: 0}
m_RootOrder: 7 m_RootOrder: 9
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0} m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
--- !u!114 &1926098617 stripped --- !u!114 &1926098617 stripped
MonoBehaviour: MonoBehaviour:
@ -2287,6 +2712,141 @@ MonoBehaviour:
m_Script: {fileID: 11500000, guid: 79b7d4d08379c4a4b9c0c4a91499fb6d, type: 3} m_Script: {fileID: 11500000, guid: 79b7d4d08379c4a4b9c0c4a91499fb6d, type: 3}
m_Name: m_Name:
m_EditorClassIdentifier: m_EditorClassIdentifier:
--- !u!1 &2081597135
GameObject:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
serializedVersion: 6
m_Component:
- component: {fileID: 2081597136}
- component: {fileID: 2081597138}
- component: {fileID: 2081597137}
m_Layer: 5
m_Name: txt_currency
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
--- !u!224 &2081597136
RectTransform:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2081597135}
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: 231012780}
m_RootOrder: 0
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: 60.199986, y: -10.000013}
m_SizeDelta: {x: 200, y: 50}
m_Pivot: {x: 0.5, y: 0.5}
--- !u!114 &2081597137
MonoBehaviour:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2081597135}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
m_Name:
m_EditorClassIdentifier:
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_text: +1
m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: dc36b3fdc14f47ebb36fd484a67e268a, type: 2}
m_sharedMaterial: {fileID: 2140032, guid: dc36b3fdc14f47ebb36fd484a67e268a, type: 2}
m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0}
m_fontMaterials: []
m_fontColor32:
serializedVersion: 2
rgba: 4294967295
m_fontColor: {r: 1, g: 1, b: 1, a: 1}
m_enableVertexGradient: 0
m_colorMode: 3
m_fontColorGradient:
topLeft: {r: 1, g: 1, b: 1, a: 1}
topRight: {r: 1, g: 1, b: 1, a: 1}
bottomLeft: {r: 1, g: 1, b: 1, a: 1}
bottomRight: {r: 1, g: 1, b: 1, a: 1}
m_fontColorGradientPreset: {fileID: 0}
m_spriteAsset: {fileID: 0}
m_tintAllSprites: 0
m_StyleSheet: {fileID: 0}
m_TextStyleHashCode: -1183493901
m_overrideHtmlColors: 0
m_faceColor:
serializedVersion: 2
rgba: 4294967295
m_fontSize: 34
m_fontSizeBase: 34
m_fontWeight: 400
m_enableAutoSizing: 0
m_fontSizeMin: 18
m_fontSizeMax: 72
m_fontStyle: 0
m_HorizontalAlignment: 1
m_VerticalAlignment: 256
m_textAlignment: 65535
m_characterSpacing: 0
m_wordSpacing: 0
m_lineSpacing: 0
m_lineSpacingMax: 0
m_paragraphSpacing: 0
m_charWidthMaxAdj: 0
m_enableWordWrapping: 1
m_wordWrappingRatios: 0.4
m_overflowMode: 0
m_linkedTextComponent: {fileID: 0}
parentLinkedComponent: {fileID: 0}
m_enableKerning: 1
m_enableExtraPadding: 0
checkPaddingRequired: 0
m_isRichText: 1
m_parseCtrlCharacters: 1
m_isOrthographic: 1
m_isCullingEnabled: 0
m_horizontalMapping: 0
m_verticalMapping: 0
m_uvLineOffset: 0
m_geometrySortingOrder: 0
m_IsTextObjectScaleStatic: 0
m_VertexBufferAutoSizeReduction: 0
m_useMaxVisibleDescender: 1
m_pageToDisplay: 1
m_margin: {x: 0, y: 0, z: 0, w: 0}
m_isUsingLegacyAnimationComponent: 0
m_isVolumetricText: 0
m_hasFontAssetChanged: 0
m_baseMaterial: {fileID: 0}
m_maskOffset: {x: 0, y: 0, z: 0, w: 0}
--- !u!222 &2081597138
CanvasRenderer:
m_ObjectHideFlags: 0
m_CorrespondingSourceObject: {fileID: 0}
m_PrefabInstance: {fileID: 0}
m_PrefabAsset: {fileID: 0}
m_GameObject: {fileID: 2081597135}
m_CullTransparentMesh: 1
--- !u!1001 &2114377970 --- !u!1001 &2114377970
PrefabInstance: PrefabInstance:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
@ -2489,7 +3049,7 @@ PrefabInstance:
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 7226858076299792826, guid: 1fbf5b38e74bdfe4185768d47372abe2, type: 3} - target: {fileID: 7226858076299792826, guid: 1fbf5b38e74bdfe4185768d47372abe2, type: 3}
propertyPath: m_RootOrder propertyPath: m_RootOrder
value: 4 value: 5
objectReference: {fileID: 0} objectReference: {fileID: 0}
- target: {fileID: 7226858076299792826, guid: 1fbf5b38e74bdfe4185768d47372abe2, type: 3} - target: {fileID: 7226858076299792826, guid: 1fbf5b38e74bdfe4185768d47372abe2, type: 3}
propertyPath: m_AnchorMax.x propertyPath: m_AnchorMax.x

View File

@ -38,7 +38,7 @@ RenderSettings:
m_ReflectionIntensity: 1 m_ReflectionIntensity: 1
m_CustomReflection: {fileID: 0} m_CustomReflection: {fileID: 0}
m_Sun: {fileID: 0} m_Sun: {fileID: 0}
m_IndirectSpecularColor: {r: 0.010485779, g: 0.052983798, b: 0.15318781, a: 1} m_IndirectSpecularColor: {r: 0.010486943, g: 0.05298245, b: 0.15319028, a: 1}
m_UseRadianceAmbientProbe: 0 m_UseRadianceAmbientProbe: 0
--- !u!157 &3 --- !u!157 &3
LightmapSettings: LightmapSettings:
@ -625,8 +625,8 @@ MonoBehaviour:
m_Calls: [] m_Calls: []
m_text: Play m_text: Play
m_isRightToLeft: 0 m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 125cb55b44b24c4393181402bc6200e6, type: 2} m_fontAsset: {fileID: 11400000, guid: 8a89fa14b10d46a99122fd4f73fca9a2, type: 2}
m_sharedMaterial: {fileID: 2140032, guid: 125cb55b44b24c4393181402bc6200e6, type: 2} m_sharedMaterial: {fileID: 2100000, guid: 8a89fa14b10d46a99122fd4f73fca9a2, type: 2}
m_fontSharedMaterials: [] m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0} m_fontMaterial: {fileID: 0}
m_fontMaterials: [] m_fontMaterials: []
@ -760,8 +760,8 @@ MonoBehaviour:
m_Calls: [] m_Calls: []
m_text: Quit m_text: Quit
m_isRightToLeft: 0 m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 125cb55b44b24c4393181402bc6200e6, type: 2} m_fontAsset: {fileID: 11400000, guid: 8a89fa14b10d46a99122fd4f73fca9a2, type: 2}
m_sharedMaterial: {fileID: 2140032, guid: 125cb55b44b24c4393181402bc6200e6, type: 2} m_sharedMaterial: {fileID: 2100000, guid: 8a89fa14b10d46a99122fd4f73fca9a2, type: 2}
m_fontSharedMaterials: [] m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0} m_fontMaterial: {fileID: 0}
m_fontMaterials: [] m_fontMaterials: []
@ -1029,8 +1029,8 @@ MonoBehaviour:
m_Calls: [] m_Calls: []
m_text: Verse Invaders m_text: Verse Invaders
m_isRightToLeft: 0 m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 125cb55b44b24c4393181402bc6200e6, type: 2} m_fontAsset: {fileID: 11400000, guid: f954703432872b6469baf3c6005b0297, type: 2}
m_sharedMaterial: {fileID: 2140032, guid: 125cb55b44b24c4393181402bc6200e6, type: 2} m_sharedMaterial: {fileID: 2140474, guid: f954703432872b6469baf3c6005b0297, type: 2}
m_fontSharedMaterials: [] m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0} m_fontMaterial: {fileID: 0}
m_fontMaterials: [] m_fontMaterials: []
@ -1696,8 +1696,8 @@ MonoBehaviour:
m_Calls: [] m_Calls: []
m_text: Leaderboard m_text: Leaderboard
m_isRightToLeft: 0 m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 125cb55b44b24c4393181402bc6200e6, type: 2} m_fontAsset: {fileID: 11400000, guid: 8a89fa14b10d46a99122fd4f73fca9a2, type: 2}
m_sharedMaterial: {fileID: 2140032, guid: 125cb55b44b24c4393181402bc6200e6, type: 2} m_sharedMaterial: {fileID: 2100000, guid: 8a89fa14b10d46a99122fd4f73fca9a2, type: 2}
m_fontSharedMaterials: [] m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0} m_fontMaterial: {fileID: 0}
m_fontMaterials: [] m_fontMaterials: []
@ -1966,8 +1966,8 @@ MonoBehaviour:
m_Calls: [] m_Calls: []
m_text: Options m_text: Options
m_isRightToLeft: 0 m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 125cb55b44b24c4393181402bc6200e6, type: 2} m_fontAsset: {fileID: 11400000, guid: 8a89fa14b10d46a99122fd4f73fca9a2, type: 2}
m_sharedMaterial: {fileID: 2140032, guid: 125cb55b44b24c4393181402bc6200e6, type: 2} m_sharedMaterial: {fileID: 2100000, guid: 8a89fa14b10d46a99122fd4f73fca9a2, type: 2}
m_fontSharedMaterials: [] m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0} m_fontMaterial: {fileID: 0}
m_fontMaterials: [] m_fontMaterials: []
@ -2660,8 +2660,8 @@ MonoBehaviour:
m_Calls: [] m_Calls: []
m_text: Help m_text: Help
m_isRightToLeft: 0 m_isRightToLeft: 0
m_fontAsset: {fileID: 11400000, guid: 125cb55b44b24c4393181402bc6200e6, type: 2} m_fontAsset: {fileID: 11400000, guid: 8a89fa14b10d46a99122fd4f73fca9a2, type: 2}
m_sharedMaterial: {fileID: 2140032, guid: 125cb55b44b24c4393181402bc6200e6, type: 2} m_sharedMaterial: {fileID: 2100000, guid: 8a89fa14b10d46a99122fd4f73fca9a2, type: 2}
m_fontSharedMaterials: [] m_fontSharedMaterials: []
m_fontMaterial: {fileID: 0} m_fontMaterial: {fileID: 0}
m_fontMaterials: [] m_fontMaterials: []

View File

@ -0,0 +1,8 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class EventNames
{
public const string GainCurrency = "GainCurrency";
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: b96e579fee603274ba384657ac3d3ef1
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: c8d2ec23dcc20964788047711eddd0a6
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,8 @@
fileFormatVersion: 2
guid: c2b1eb35f896cd640b937dcca329a6d6
folderAsset: yes
DefaultImporter:
externalObjects: {}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,9 @@

namespace Bytes
{
public class BoolDataBytes : BytesData
{
public BoolDataBytes(bool boolValue) { BoolValue = boolValue; }
public bool BoolValue { get; private set; }
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 850f11b16058c8745b3f7bf7ead42c83
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,9 @@

namespace Bytes
{
public class FloatDataBytes : BytesData
{
public FloatDataBytes(float floatValue) { FloatValue = floatValue; }
public float FloatValue { get; private set; }
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 4cf554c8362a4fa409da96f7c189d4fb
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,10 @@
using UnityEngine;
namespace Bytes
{
public class GameObjectDataBytes : BytesData
{
public GameObjectDataBytes(GameObject gameObjectValue) { GameObjectValue = gameObjectValue; }
public GameObject GameObjectValue { get; private set; }
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: d9e19f4206d392743aba9f4424b24820
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,9 @@

namespace Bytes
{
public class IntDataBytes : BytesData
{
public IntDataBytes(int intValue) { IntValue = intValue; }
public int IntValue { get; private set; }
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: e9a6a350830aa524cae6e237b3028b57
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,9 @@

namespace Bytes
{
public class ObjectDataBytes : BytesData
{
public ObjectDataBytes(object objectParam) { ObjectValue = objectParam; }
public object ObjectValue { get; private set; }
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 60cc200700e60b94b9d1a8350f2975eb
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,10 @@

namespace Bytes
{
public class ProgressionDataBytes : BytesData
{
public ProgressionDataBytes(int current, int max) { Current = current; Max = max; }
public int Current { get; private set; }
public int Max { get; private set; }
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 97f03bffeba756940a08506f5a58238b
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,9 @@

namespace Bytes
{
public class StringDataBytes : BytesData
{
public StringDataBytes(string stringValue) { StringValue = stringValue; }
public string StringValue { get; private set; }
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 377e8aa3bdd4923449c8f1c418143cd1
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,10 @@
using UnityEngine;
namespace Bytes
{
public class TransformDataBytes : BytesData
{
public TransformDataBytes(Transform transformValue) { TransformValue = transformValue; }
public Transform TransformValue { get; private set; }
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 076fce5706c83fb4f938f7e31a8e41ae
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@

using UnityEngine;
namespace Bytes
{
public class Vector2DataBytes : BytesData
{
public Vector2DataBytes(Vector2 vector2Value) { Vector2Value = vector2Value; }
public Vector2 Vector2Value { get; private set; }
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 6b9aba07a95e5b945a0dfdcc40d65ca3
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,11 @@

using UnityEngine;
namespace Bytes
{
public class Vector3DataBytes : BytesData
{
public Vector3DataBytes(Vector3 vector3Value) { Vector3Value = vector3Value; }
public Vector3 Vector3Value { get; private set; }
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 3d3ae0442eabab041b50dc99746a4053
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,9 @@
using System;
namespace Bytes
{
public interface BytesData
{
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: cfd660ff526857d4280f46dbfc5f83da
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,40 @@
using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
namespace Bytes
{
public class DemoEventManager : MonoBehaviour
{
private string demoEventName = "DemoEvent";
private void Start()
{
EventManager.AddEventListener(demoEventName, HandleOnPressE);
}
void Update()
{
if (Input.GetKeyDown(KeyCode.E))
{
// Usually this would be called in another extern Script,
// since this is the purpose of the Event system.
EventManager.Dispatch(demoEventName, new DemoData(3));
}
}
private void HandleOnPressE(BytesData data)
{
var demoData = (data as DemoData);
print("Custom data Number = " + demoData.Number);
}
}
public class DemoData : BytesData
{
public DemoData(int number) { Number = number; }
public int Number { get; private set; }
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: f920905578538cb4a85b21bc1a78bef2
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

View File

@ -0,0 +1,75 @@
using System;
using System.Collections.Generic;
using UnityEngine;
namespace Bytes
{
public class EventManager : MonoBehaviour
{
public const string AllNamespace = "All";
private static EventManager Instance;
private Dictionary<string, Dictionary<string, List<Action<BytesData>>>> _eventListeners = new Dictionary<string, Dictionary<string, List<Action<BytesData>>>>();
private void Awake()
{
Instance = this;
}
public static void RemoveEventListener(string pEventName, Action<BytesData> pFunctionToCall)
{
RemoveEventListener(AllNamespace, pEventName, pFunctionToCall);
}
public static void RemoveEventListener(string pEventNamespace, string pEventName, Action<BytesData> pFunctionToCall)
{
Instance._eventListeners[pEventNamespace][pEventName].Remove(pFunctionToCall);
}
public static void AddEventListener(string pEventName, Action<BytesData> pFunctionToCall)
{
AddEventListener(AllNamespace, pEventName, pFunctionToCall);
}
public static void AddEventListener(string pEventNamespace, string pEventName, Action<BytesData> pFunctionToCall)
{
var eventListeners = Instance._eventListeners;
if (!eventListeners.ContainsKey(pEventNamespace))
{
eventListeners[pEventNamespace] = new Dictionary<string, List<Action<BytesData>>>();
}
if (eventListeners[pEventNamespace].ContainsKey(pEventName))
{
eventListeners[pEventNamespace][pEventName].Add(pFunctionToCall);
return;
}
eventListeners[pEventNamespace].Add(pEventName, new List<Action<BytesData>>() { pFunctionToCall });
}
public static void Dispatch(string pEventName, BytesData pBytesData = null)
{
Dispatch(AllNamespace, pEventName, pBytesData);
}
public static void Dispatch(string pEventNamespace, string pEventName, BytesData pBytesData = null)
{
if (!Instance._eventListeners[pEventNamespace].ContainsKey(pEventName))
{
return;
}
Instance.CleanEventsFromNull(pEventNamespace, pEventName);
List<Action<BytesData>> functions = new List<Action<BytesData>>(Instance._eventListeners[pEventNamespace][pEventName]);
foreach (Action<BytesData> functionToCall in functions)
{
functionToCall(pBytesData);
}
}
private void CleanEventsFromNull(string pEventNamespace, string pEventName)
{
Instance._eventListeners[pEventNamespace][pEventName].RemoveAll(item => item == null);
}
}
}

View File

@ -0,0 +1,3 @@
fileFormatVersion: 2
guid: e14aeb87374c41409dd86aed505571c4
timeCreated: 1601355311

View File

@ -1,6 +1,8 @@
using UnityEngine; using UnityEngine;
using UnityEngine.InputSystem; using UnityEngine.InputSystem;
using Bytes;
public class GameManager : MonoBehaviour public class GameManager : MonoBehaviour
{ {
[SerializeField] private PlayerInput controls; [SerializeField] private PlayerInput controls;
@ -122,6 +124,8 @@ public class GameManager : MonoBehaviour
{ {
points += amount; points += amount;
uiController.UpdatePointsText(points); uiController.UpdatePointsText(points);
EventManager.Dispatch(EventNames.GainCurrency, new IntDataBytes((int)amount));
} }
public LayerMask GetCurrentDimensionLayerMask() public LayerMask GetCurrentDimensionLayerMask()

View File

@ -44,7 +44,7 @@ public class MainMenuController : MonoBehaviour
} }
public void OnPlay(){ public void OnPlay(){
SceneManager.LoadScene("testing_art"); SceneManager.LoadScene("Game");
} }

View File

@ -0,0 +1,27 @@
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using TMPro;
using Bytes;
using System;
public class GainCurrency : MonoBehaviour
{
[SerializeField] private Animator anim;
[SerializeField] private TextMeshProUGUI txt_currencyAmountGained;
private void Start()
{
EventManager.AddEventListener(EventNames.GainCurrency, HandleGainCurrency);
}
private void HandleGainCurrency(BytesData data)
{
int amount = (data as IntDataBytes).IntValue;
txt_currencyAmountGained.text = "+ " + amount.ToString();
anim.Play("CurrencyGain_Play");
}
}

View File

@ -0,0 +1,11 @@
fileFormatVersion: 2
guid: 23cb955f35633a8489b9a71a55546bd2
MonoImporter:
externalObjects: {}
serializedVersion: 2
defaultReferences: []
executionOrder: 0
icon: {instanceID: 0}
userData:
assetBundleName:
assetBundleVariant:

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -5,13 +5,10 @@ EditorBuildSettings:
m_ObjectHideFlags: 0 m_ObjectHideFlags: 0
serializedVersion: 2 serializedVersion: 2
m_Scenes: m_Scenes:
- enabled: 0
path:
guid: 00000000000000000000000000000000
- enabled: 1 - enabled: 1
path: Assets/Scenes/MainMenu.unity path: Assets/Scenes/MainMenu.unity
guid: e00e1e3705465134eb4853ed0bef2506 guid: e00e1e3705465134eb4853ed0bef2506
- enabled: 1 - enabled: 1
path: Assets/Scenes/testing_art.unity path: Assets/Scenes/Game.unity
guid: 99c9720ab356a0642a771bea13969a05 guid: 8bb2bf2697d291f4489c326d05527161
m_configObjects: {} m_configObjects: {}