Merge pull request #5 from Thepuppetqueen57/blank-berry
Added a berry that does nothing
This commit is contained in:
@@ -748,6 +748,81 @@ MonoBehaviour:
|
|||||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.RectMask2D
|
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.RectMask2D
|
||||||
m_Padding: {x: -8, y: -5, z: -8, w: -5}
|
m_Padding: {x: -8, y: -5, z: -8, w: -5}
|
||||||
m_Softness: {x: 0, y: 0}
|
m_Softness: {x: 0, y: 0}
|
||||||
|
--- !u!1 &276659096
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 276659097}
|
||||||
|
- component: {fileID: 276659099}
|
||||||
|
- component: {fileID: 276659098}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Image
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &276659097
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 276659096}
|
||||||
|
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: 1563853710}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
|
m_AnchorMax: {x: 0, y: 1}
|
||||||
|
m_AnchoredPosition: {x: 22.5, y: -22.5}
|
||||||
|
m_SizeDelta: {x: 45, y: 45}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!114 &276659098
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 276659096}
|
||||||
|
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: 21300000, guid: 7b3886d91158d45c5a254ea85e772e16, 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 &276659099
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 276659096}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
--- !u!1 &279662026
|
--- !u!1 &279662026
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -836,6 +911,57 @@ MonoBehaviour:
|
|||||||
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.RectMask2D
|
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.RectMask2D
|
||||||
m_Padding: {x: -8, y: -5, z: -8, w: -5}
|
m_Padding: {x: -8, y: -5, z: -8, w: -5}
|
||||||
m_Softness: {x: 0, y: 0}
|
m_Softness: {x: 0, y: 0}
|
||||||
|
--- !u!1 &327426525
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 327426526}
|
||||||
|
- component: {fileID: 327426527}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Text Area
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &327426526
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 327426525}
|
||||||
|
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: 1667619959}
|
||||||
|
m_Father: {fileID: 830548775}
|
||||||
|
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.5}
|
||||||
|
m_SizeDelta: {x: -20, y: -13}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!114 &327426527
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 327426525}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 3312d7739989d2b4e91e6319e9a96d76, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier: UnityEngine.UI::UnityEngine.UI.RectMask2D
|
||||||
|
m_Padding: {x: -8, y: -5, z: -8, w: -5}
|
||||||
|
m_Softness: {x: 0, y: 0}
|
||||||
--- !u!1 &388305487
|
--- !u!1 &388305487
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -2066,6 +2192,7 @@ MonoBehaviour:
|
|||||||
speedyBerryChance: {fileID: 1878332340}
|
speedyBerryChance: {fileID: 1878332340}
|
||||||
randomBerryChance: {fileID: 2018765150}
|
randomBerryChance: {fileID: 2018765150}
|
||||||
antiBerryChance: {fileID: 1230511725}
|
antiBerryChance: {fileID: 1230511725}
|
||||||
|
nothingBerryChance: {fileID: 830548777}
|
||||||
validateTotalText: {fileID: 598155839}
|
validateTotalText: {fileID: 598155839}
|
||||||
jumpscareImage: {fileID: 972157958}
|
jumpscareImage: {fileID: 972157958}
|
||||||
jumpscareAudio: {fileID: 1202270393}
|
jumpscareAudio: {fileID: 1202270393}
|
||||||
@@ -3124,6 +3251,201 @@ MonoBehaviour:
|
|||||||
invert: 0
|
invert: 0
|
||||||
addMore: {r: 0, g: 0, b: 0, a: 0}
|
addMore: {r: 0, g: 0, b: 0, a: 0}
|
||||||
reverseAdd: 0
|
reverseAdd: 0
|
||||||
|
--- !u!1 &830548774
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 830548775}
|
||||||
|
- component: {fileID: 830548779}
|
||||||
|
- component: {fileID: 830548778}
|
||||||
|
- component: {fileID: 830548777}
|
||||||
|
- component: {fileID: 830548776}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: SpawnRate
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &830548775
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 830548774}
|
||||||
|
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: 327426526}
|
||||||
|
m_Father: {fileID: 1563853710}
|
||||||
|
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: 25, y: 0}
|
||||||
|
m_SizeDelta: {x: 82.5, y: 45}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!114 &830548776
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 830548774}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 73b30df2b3a7144b99b75ce70168fd50, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier: Assembly-CSharp::CustomColorObject
|
||||||
|
type: 2
|
||||||
|
invert: 0
|
||||||
|
addMore: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
reverseAdd: 0
|
||||||
|
--- !u!114 &830548777
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 830548774}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 2da0c512f12947e489f739169773d7ca, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier: Unity.TextMeshPro::TMPro.TMP_InputField
|
||||||
|
m_Navigation:
|
||||||
|
m_Mode: 3
|
||||||
|
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: 830548778}
|
||||||
|
m_TextViewport: {fileID: 327426526}
|
||||||
|
m_TextComponent: {fileID: 1667619961}
|
||||||
|
m_Placeholder: {fileID: 0}
|
||||||
|
m_VerticalScrollbar: {fileID: 0}
|
||||||
|
m_VerticalScrollbarEventHandler: {fileID: 0}
|
||||||
|
m_LayoutGroup: {fileID: 0}
|
||||||
|
m_ScrollSensitivity: 1
|
||||||
|
m_ContentType: 2
|
||||||
|
m_InputType: 0
|
||||||
|
m_AsteriskChar: 42
|
||||||
|
m_KeyboardType: 2
|
||||||
|
m_LineType: 0
|
||||||
|
m_HideMobileInput: 0
|
||||||
|
m_HideSoftKeyboard: 0
|
||||||
|
m_CharacterValidation: 2
|
||||||
|
m_RegexValue:
|
||||||
|
m_GlobalPointSize: 24
|
||||||
|
m_CharacterLimit: 0
|
||||||
|
m_OnEndEdit:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_OnSubmit:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_OnSelect:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_OnDeselect:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_OnTextSelection:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_OnEndTextSelection:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_OnValueChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_OnTouchScreenKeyboardStatusChanged:
|
||||||
|
m_PersistentCalls:
|
||||||
|
m_Calls: []
|
||||||
|
m_CaretColor: {r: 0.19607843, g: 0.19607843, b: 0.19607843, a: 1}
|
||||||
|
m_CustomCaretColor: 0
|
||||||
|
m_SelectionColor: {r: 0.65882355, g: 0.80784315, b: 1, a: 0.7529412}
|
||||||
|
m_Text: 0%
|
||||||
|
m_CaretBlinkRate: 0.85
|
||||||
|
m_CaretWidth: 1
|
||||||
|
m_ReadOnly: 0
|
||||||
|
m_RichText: 1
|
||||||
|
m_GlobalFontAsset: {fileID: 11400000, guid: 4fd546dd0900395408d2de20f5025882, type: 2}
|
||||||
|
m_OnFocusSelectAll: 0
|
||||||
|
m_ResetOnDeActivation: 1
|
||||||
|
m_KeepTextSelectionVisible: 0
|
||||||
|
m_RestoreOriginalTextOnEscape: 1
|
||||||
|
m_isRichTextEditingAllowed: 0
|
||||||
|
m_LineLimit: 0
|
||||||
|
isAlert: 0
|
||||||
|
m_InputValidator: {fileID: 0}
|
||||||
|
m_ShouldActivateOnSelect: 1
|
||||||
|
--- !u!114 &830548778
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 830548774}
|
||||||
|
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: 10911, 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 &830548779
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 830548774}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
--- !u!1 &846401273
|
--- !u!1 &846401273
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -4007,7 +4329,7 @@ RectTransform:
|
|||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 1}
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
m_AnchorMax: {x: 0, y: 1}
|
m_AnchorMax: {x: 0, y: 1}
|
||||||
m_AnchoredPosition: {x: 456.25, y: -200}
|
m_AnchoredPosition: {x: 456.25, y: -177.4}
|
||||||
m_SizeDelta: {x: 132.5, y: 45}
|
m_SizeDelta: {x: 132.5, y: 45}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!1 &1230511723
|
--- !u!1 &1230511723
|
||||||
@@ -4686,6 +5008,7 @@ RectTransform:
|
|||||||
- {fileID: 1607812743}
|
- {fileID: 1607812743}
|
||||||
- {fileID: 1747700597}
|
- {fileID: 1747700597}
|
||||||
- {fileID: 1219795705}
|
- {fileID: 1219795705}
|
||||||
|
- {fileID: 1563853710}
|
||||||
m_Father: {fileID: 164218987}
|
m_Father: {fileID: 164218987}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 0.5}
|
m_AnchorMin: {x: 0, y: 0.5}
|
||||||
@@ -5015,6 +5338,43 @@ Transform:
|
|||||||
m_Children: []
|
m_Children: []
|
||||||
m_Father: {fileID: 0}
|
m_Father: {fileID: 0}
|
||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
--- !u!1 &1563853709
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1563853710}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Berry
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &1563853710
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1563853709}
|
||||||
|
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: 276659097}
|
||||||
|
- {fileID: 830548775}
|
||||||
|
m_Father: {fileID: 1425764567}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
|
m_AnchorMax: {x: 0, y: 1}
|
||||||
|
m_AnchoredPosition: {x: 456.25, y: -232.5}
|
||||||
|
m_SizeDelta: {x: 132.5, y: 45}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!1 &1607812742
|
--- !u!1 &1607812742
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -5049,7 +5409,7 @@ RectTransform:
|
|||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 1}
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
m_AnchorMax: {x: 0, y: 1}
|
m_AnchorMax: {x: 0, y: 1}
|
||||||
m_AnchoredPosition: {x: 456.25, y: -90}
|
m_AnchoredPosition: {x: 456.25, y: -67.4}
|
||||||
m_SizeDelta: {x: 132.5, y: 45}
|
m_SizeDelta: {x: 132.5, y: 45}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!1 &1645061374
|
--- !u!1 &1645061374
|
||||||
@@ -5357,6 +5717,159 @@ CanvasRenderer:
|
|||||||
m_PrefabAsset: {fileID: 0}
|
m_PrefabAsset: {fileID: 0}
|
||||||
m_GameObject: {fileID: 1654775844}
|
m_GameObject: {fileID: 1654775844}
|
||||||
m_CullTransparentMesh: 1
|
m_CullTransparentMesh: 1
|
||||||
|
--- !u!1 &1667619958
|
||||||
|
GameObject:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
serializedVersion: 6
|
||||||
|
m_Component:
|
||||||
|
- component: {fileID: 1667619959}
|
||||||
|
- component: {fileID: 1667619962}
|
||||||
|
- component: {fileID: 1667619961}
|
||||||
|
- component: {fileID: 1667619960}
|
||||||
|
m_Layer: 5
|
||||||
|
m_Name: Text
|
||||||
|
m_TagString: Untagged
|
||||||
|
m_Icon: {fileID: 0}
|
||||||
|
m_NavMeshLayer: 0
|
||||||
|
m_StaticEditorFlags: 0
|
||||||
|
m_IsActive: 1
|
||||||
|
--- !u!224 &1667619959
|
||||||
|
RectTransform:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1667619958}
|
||||||
|
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: 327426526}
|
||||||
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
|
m_AnchorMin: {x: 0, y: 0}
|
||||||
|
m_AnchorMax: {x: 1, y: 1}
|
||||||
|
m_AnchoredPosition: {x: 0, y: 0}
|
||||||
|
m_SizeDelta: {x: 0, y: 0}
|
||||||
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
|
--- !u!114 &1667619960
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1667619958}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: 73b30df2b3a7144b99b75ce70168fd50, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier: Assembly-CSharp::CustomColorObject
|
||||||
|
type: 9
|
||||||
|
invert: 0
|
||||||
|
addMore: {r: 0, g: 0, b: 0, a: 0}
|
||||||
|
reverseAdd: 0
|
||||||
|
--- !u!114 &1667619961
|
||||||
|
MonoBehaviour:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1667619958}
|
||||||
|
m_Enabled: 1
|
||||||
|
m_EditorHideFlags: 0
|
||||||
|
m_Script: {fileID: 11500000, guid: f4688fdb7df04437aeb418b961361dc5, type: 3}
|
||||||
|
m_Name:
|
||||||
|
m_EditorClassIdentifier: Unity.TextMeshPro::TMPro.TextMeshProUGUI
|
||||||
|
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: "5%\u200B"
|
||||||
|
m_isRightToLeft: 0
|
||||||
|
m_fontAsset: {fileID: 11400000, guid: 4fd546dd0900395408d2de20f5025882, type: 2}
|
||||||
|
m_sharedMaterial: {fileID: -1476194838487357290, guid: 4fd546dd0900395408d2de20f5025882, type: 2}
|
||||||
|
m_fontSharedMaterials: []
|
||||||
|
m_fontMaterial: {fileID: 0}
|
||||||
|
m_fontMaterials: []
|
||||||
|
m_fontColor32:
|
||||||
|
serializedVersion: 2
|
||||||
|
rgba: 4278190080
|
||||||
|
m_fontColor: {r: 0, g: 0, b: 0, 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: 24
|
||||||
|
m_fontSizeBase: 24
|
||||||
|
m_fontWeight: 400
|
||||||
|
m_enableAutoSizing: 1
|
||||||
|
m_fontSizeMin: 0
|
||||||
|
m_fontSizeMax: 24
|
||||||
|
m_fontStyle: 0
|
||||||
|
m_HorizontalAlignment: 2
|
||||||
|
m_VerticalAlignment: 512
|
||||||
|
m_textAlignment: 65535
|
||||||
|
m_characterSpacing: 0
|
||||||
|
m_wordSpacing: 0
|
||||||
|
m_lineSpacing: 0
|
||||||
|
m_lineSpacingMax: 0
|
||||||
|
m_paragraphSpacing: 0
|
||||||
|
m_charWidthMaxAdj: 0
|
||||||
|
m_TextWrappingMode: 3
|
||||||
|
m_wordWrappingRatios: 0.4
|
||||||
|
m_overflowMode: 0
|
||||||
|
m_linkedTextComponent: {fileID: 0}
|
||||||
|
parentLinkedComponent: {fileID: 0}
|
||||||
|
m_enableKerning: 0
|
||||||
|
m_ActiveFontFeatures: 6e72656b
|
||||||
|
m_enableExtraPadding: 1
|
||||||
|
checkPaddingRequired: 0
|
||||||
|
m_isRichText: 1
|
||||||
|
m_EmojiFallbackSupport: 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 &1667619962
|
||||||
|
CanvasRenderer:
|
||||||
|
m_ObjectHideFlags: 0
|
||||||
|
m_CorrespondingSourceObject: {fileID: 0}
|
||||||
|
m_PrefabInstance: {fileID: 0}
|
||||||
|
m_PrefabAsset: {fileID: 0}
|
||||||
|
m_GameObject: {fileID: 1667619958}
|
||||||
|
m_CullTransparentMesh: 1
|
||||||
--- !u!1 &1714098254
|
--- !u!1 &1714098254
|
||||||
GameObject:
|
GameObject:
|
||||||
m_ObjectHideFlags: 0
|
m_ObjectHideFlags: 0
|
||||||
@@ -5620,7 +6133,7 @@ RectTransform:
|
|||||||
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
m_LocalEulerAnglesHint: {x: 0, y: 0, z: 0}
|
||||||
m_AnchorMin: {x: 0, y: 1}
|
m_AnchorMin: {x: 0, y: 1}
|
||||||
m_AnchorMax: {x: 0, y: 1}
|
m_AnchorMax: {x: 0, y: 1}
|
||||||
m_AnchoredPosition: {x: 456.25, y: -145}
|
m_AnchoredPosition: {x: 456.25, y: -122.39999}
|
||||||
m_SizeDelta: {x: 132.5, y: 45}
|
m_SizeDelta: {x: 132.5, y: 45}
|
||||||
m_Pivot: {x: 0.5, y: 0.5}
|
m_Pivot: {x: 0.5, y: 0.5}
|
||||||
--- !u!1 &1878332338
|
--- !u!1 &1878332338
|
||||||
|
|||||||
@@ -45,6 +45,7 @@ public class CustomGamePlayer : MonoBehaviour
|
|||||||
private float speedyBerryChance;
|
private float speedyBerryChance;
|
||||||
private float randomBerryChance;
|
private float randomBerryChance;
|
||||||
private float antiBerryChance;
|
private float antiBerryChance;
|
||||||
|
private float nothingBerryChance;
|
||||||
|
|
||||||
void Start()
|
void Start()
|
||||||
{
|
{
|
||||||
@@ -61,6 +62,7 @@ public class CustomGamePlayer : MonoBehaviour
|
|||||||
speedyBerryChance = customGameTempData.speedyBerryChance;
|
speedyBerryChance = customGameTempData.speedyBerryChance;
|
||||||
randomBerryChance = customGameTempData.randomBerryChance;
|
randomBerryChance = customGameTempData.randomBerryChance;
|
||||||
antiBerryChance = customGameTempData.antiBerryChance;
|
antiBerryChance = customGameTempData.antiBerryChance;
|
||||||
|
nothingBerryChance = customGameTempData.nothingBerryChance;
|
||||||
Destroy(customGameTempData.gameObject);
|
Destroy(customGameTempData.gameObject);
|
||||||
|
|
||||||
var backgroundColor = BazookaManager.Instance.GetColorSettingBackground();
|
var backgroundColor = BazookaManager.Instance.GetColorSettingBackground();
|
||||||
@@ -389,6 +391,13 @@ public class CustomGamePlayer : MonoBehaviour
|
|||||||
newBerry.tag = "AntiBerry";
|
newBerry.tag = "AntiBerry";
|
||||||
goto finish;
|
goto finish;
|
||||||
}
|
}
|
||||||
|
cumulative += nothingBerryChance / 100f;
|
||||||
|
if (spawnProbability <= cumulative)
|
||||||
|
{
|
||||||
|
spriteRenderer.sprite = Resources.Load<Sprite>("Berries/BerryNoColor");
|
||||||
|
newBerry.tag = "NothingBerry";
|
||||||
|
goto finish;
|
||||||
|
}
|
||||||
finish:
|
finish:
|
||||||
spriteRenderer.sortingOrder = -5;
|
spriteRenderer.sortingOrder = -5;
|
||||||
|
|
||||||
@@ -438,6 +447,7 @@ public class CustomGamePlayer : MonoBehaviour
|
|||||||
GameObject[] speedyBerries = GameObject.FindGameObjectsWithTag("SpeedyBerry");
|
GameObject[] speedyBerries = GameObject.FindGameObjectsWithTag("SpeedyBerry");
|
||||||
GameObject[] randomBerries = GameObject.FindGameObjectsWithTag("RandomBerry");
|
GameObject[] randomBerries = GameObject.FindGameObjectsWithTag("RandomBerry");
|
||||||
GameObject[] antiBerries = GameObject.FindGameObjectsWithTag("AntiBerry");
|
GameObject[] antiBerries = GameObject.FindGameObjectsWithTag("AntiBerry");
|
||||||
|
GameObject[] nothingBerries = GameObject.FindGameObjectsWithTag("NothingBerry");
|
||||||
|
|
||||||
if (!pausePanel.activeSelf)
|
if (!pausePanel.activeSelf)
|
||||||
{
|
{
|
||||||
@@ -587,6 +597,25 @@ public class CustomGamePlayer : MonoBehaviour
|
|||||||
antiBerry.GetComponent<Rigidbody2D>().linearVelocity = new UnityEngine.Vector2(0f, -4f);
|
antiBerry.GetComponent<Rigidbody2D>().linearVelocity = new UnityEngine.Vector2(0f, -4f);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
foreach (GameObject nothingBerry in nothingBerries)
|
||||||
|
{
|
||||||
|
if (nothingBerry.transform.position.y < 0f - Camera.main.orthographicSize - 1f)
|
||||||
|
{
|
||||||
|
Destroy(nothingBerry);
|
||||||
|
}
|
||||||
|
else if (UnityEngine.Vector3.Distance(bird.transform.position, nothingBerry.transform.position) < 1.5f)
|
||||||
|
{
|
||||||
|
DoNothingBerry(nothingBerry);
|
||||||
|
}
|
||||||
|
if (speedyLeft > 0)
|
||||||
|
{
|
||||||
|
nothingBerry.GetComponent<Rigidbody2D>().linearVelocity = new UnityEngine.Vector2(0f, -7.5f);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
nothingBerry.GetComponent<Rigidbody2D>().linearVelocity = new UnityEngine.Vector2(0f, -4f);
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -599,6 +628,7 @@ public class CustomGamePlayer : MonoBehaviour
|
|||||||
.Concat(speedyBerries)
|
.Concat(speedyBerries)
|
||||||
.Concat(randomBerries)
|
.Concat(randomBerries)
|
||||||
.Concat(antiBerries)
|
.Concat(antiBerries)
|
||||||
|
.Concat(nothingBerries)
|
||||||
.ToArray();
|
.ToArray();
|
||||||
foreach (GameObject berry in allberries)
|
foreach (GameObject berry in allberries)
|
||||||
{
|
{
|
||||||
@@ -628,6 +658,7 @@ public class CustomGamePlayer : MonoBehaviour
|
|||||||
.Concat(GameObject.FindGameObjectsWithTag("SpeedyBerry"))
|
.Concat(GameObject.FindGameObjectsWithTag("SpeedyBerry"))
|
||||||
.Concat(GameObject.FindGameObjectsWithTag("RandomBerry"))
|
.Concat(GameObject.FindGameObjectsWithTag("RandomBerry"))
|
||||||
.Concat(GameObject.FindGameObjectsWithTag("AntiBerry"))
|
.Concat(GameObject.FindGameObjectsWithTag("AntiBerry"))
|
||||||
|
.Concat(GameObject.FindGameObjectsWithTag("NothingBerry"))
|
||||||
.ToArray();
|
.ToArray();
|
||||||
foreach (GameObject berry in allberries)
|
foreach (GameObject berry in allberries)
|
||||||
{
|
{
|
||||||
@@ -764,4 +795,10 @@ public class CustomGamePlayer : MonoBehaviour
|
|||||||
antiLeft = 10f;
|
antiLeft = 10f;
|
||||||
UpdateStats(0, 0);
|
UpdateStats(0, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void DoNothingBerry(GameObject berry)
|
||||||
|
{
|
||||||
|
AudioSource.PlayClipAtPoint(Resources.Load<AudioClip>("Sounds/Eat"), Camera.main.transform.position, 1.2f * BazookaManager.Instance.GetSettingSFXVolume());
|
||||||
|
Destroy(berry);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
@@ -9,6 +9,7 @@ public class CustomGameTempData : MonoBehaviour
|
|||||||
public float speedyBerryChance;
|
public float speedyBerryChance;
|
||||||
public float randomBerryChance;
|
public float randomBerryChance;
|
||||||
public float antiBerryChance;
|
public float antiBerryChance;
|
||||||
|
public float nothingBerryChance;
|
||||||
|
|
||||||
void Awake()
|
void Awake()
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -7,8 +7,8 @@ using UnityEngine.UI;
|
|||||||
|
|
||||||
public class PlayMenu : MonoBehaviour
|
public class PlayMenu : MonoBehaviour
|
||||||
{
|
{
|
||||||
private static WaitForSeconds _waitForSeconds7 = new WaitForSeconds(7);
|
private static WaitForSeconds _waitForSeconds7 = new(7);
|
||||||
private static WaitForSeconds _waitForSeconds3 = new WaitForSeconds(3);
|
private static WaitForSeconds _waitForSeconds3 = new(3);
|
||||||
public GameObject selectionMenu;
|
public GameObject selectionMenu;
|
||||||
public GameObject customMenu;
|
public GameObject customMenu;
|
||||||
public Button customButton;
|
public Button customButton;
|
||||||
@@ -22,6 +22,7 @@ public class PlayMenu : MonoBehaviour
|
|||||||
public TMP_InputField speedyBerryChance;
|
public TMP_InputField speedyBerryChance;
|
||||||
public TMP_InputField randomBerryChance;
|
public TMP_InputField randomBerryChance;
|
||||||
public TMP_InputField antiBerryChance;
|
public TMP_InputField antiBerryChance;
|
||||||
|
public TMP_InputField nothingBerryChance;
|
||||||
|
|
||||||
public TMP_Text validateTotalText;
|
public TMP_Text validateTotalText;
|
||||||
|
|
||||||
@@ -48,6 +49,7 @@ public class PlayMenu : MonoBehaviour
|
|||||||
speedyBerryChance.text = "10%";
|
speedyBerryChance.text = "10%";
|
||||||
randomBerryChance.text = "5%";
|
randomBerryChance.text = "5%";
|
||||||
antiBerryChance.text = "5%";
|
antiBerryChance.text = "5%";
|
||||||
|
nothingBerryChance.text = "0%";
|
||||||
ValidateTotal();
|
ValidateTotal();
|
||||||
});
|
});
|
||||||
customPlayButton.onClick.AddListener(async () =>
|
customPlayButton.onClick.AddListener(async () =>
|
||||||
@@ -62,6 +64,7 @@ public class PlayMenu : MonoBehaviour
|
|||||||
customGameTempData.speedyBerryChance = float.Parse(speedyBerryChance.text.Replace("%", "").Trim());
|
customGameTempData.speedyBerryChance = float.Parse(speedyBerryChance.text.Replace("%", "").Trim());
|
||||||
customGameTempData.randomBerryChance = float.Parse(randomBerryChance.text.Replace("%", "").Trim());
|
customGameTempData.randomBerryChance = float.Parse(randomBerryChance.text.Replace("%", "").Trim());
|
||||||
customGameTempData.antiBerryChance = float.Parse(antiBerryChance.text.Replace("%", "").Trim());
|
customGameTempData.antiBerryChance = float.Parse(antiBerryChance.text.Replace("%", "").Trim());
|
||||||
|
customGameTempData.nothingBerryChance = float.Parse(nothingBerryChance.text.Replace("%", "").Trim());
|
||||||
await SceneManager.LoadSceneAsync("CustomGamePlayer");
|
await SceneManager.LoadSceneAsync("CustomGamePlayer");
|
||||||
});
|
});
|
||||||
|
|
||||||
@@ -190,6 +193,24 @@ public class PlayMenu : MonoBehaviour
|
|||||||
customBackButton.interactable = true;
|
customBackButton.interactable = true;
|
||||||
ValidateTotal();
|
ValidateTotal();
|
||||||
});
|
});
|
||||||
|
nothingBerryChance.onSelect.AddListener((value) =>
|
||||||
|
{
|
||||||
|
validateTotalText.gameObject.SetActive(false);
|
||||||
|
customBackButton.interactable = false;
|
||||||
|
customPlayButton.interactable = false;
|
||||||
|
nothingBerryChance.text = value.Replace("%", "");
|
||||||
|
nothingBerryChance.stringPosition = nothingBerryChance.text.Length;
|
||||||
|
});
|
||||||
|
nothingBerryChance.onDeselect.AddListener((value) =>
|
||||||
|
{
|
||||||
|
if (float.TryParse(value, out var value2) && value2 < 0f)
|
||||||
|
{
|
||||||
|
value = "0";
|
||||||
|
}
|
||||||
|
nothingBerryChance.text = value + "%";
|
||||||
|
customBackButton.interactable = true;
|
||||||
|
ValidateTotal();
|
||||||
|
});
|
||||||
jumpscareButton.onClick.AddListener(() =>
|
jumpscareButton.onClick.AddListener(() =>
|
||||||
{
|
{
|
||||||
jumpscareButton.GetComponent<Image>().color = Color.red;
|
jumpscareButton.GetComponent<Image>().color = Color.red;
|
||||||
@@ -211,6 +232,7 @@ public class PlayMenu : MonoBehaviour
|
|||||||
total += float.Parse(speedyBerryChance.text.Replace("%", ""));
|
total += float.Parse(speedyBerryChance.text.Replace("%", ""));
|
||||||
total += float.Parse(randomBerryChance.text.Replace("%", ""));
|
total += float.Parse(randomBerryChance.text.Replace("%", ""));
|
||||||
total += float.Parse(antiBerryChance.text.Replace("%", ""));
|
total += float.Parse(antiBerryChance.text.Replace("%", ""));
|
||||||
|
total += float.Parse(nothingBerryChance.text.Replace("%", ""));
|
||||||
}
|
}
|
||||||
catch (Exception)
|
catch (Exception)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -17,6 +17,7 @@
|
|||||||
"com.unity.render-pipelines.universal": "17.2.0",
|
"com.unity.render-pipelines.universal": "17.2.0",
|
||||||
"com.unity.test-framework": "1.5.1",
|
"com.unity.test-framework": "1.5.1",
|
||||||
"com.unity.timeline": "1.8.9",
|
"com.unity.timeline": "1.8.9",
|
||||||
|
"com.unity.toolchain.linux-x86_64": "2.0.10",
|
||||||
"com.unity.toolchain.macos-arm64-linux-x86_64": "2.0.4",
|
"com.unity.toolchain.macos-arm64-linux-x86_64": "2.0.4",
|
||||||
"com.unity.ugui": "2.0.0",
|
"com.unity.ugui": "2.0.0",
|
||||||
"com.unity.visualscripting": "1.9.8",
|
"com.unity.visualscripting": "1.9.8",
|
||||||
|
|||||||
@@ -25,9 +25,9 @@
|
|||||||
"depth": 0,
|
"depth": 0,
|
||||||
"source": "registry",
|
"source": "registry",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.unity.2d.common": "11.0.1",
|
|
||||||
"com.unity.2d.sprite": "1.0.0",
|
"com.unity.2d.sprite": "1.0.0",
|
||||||
"com.unity.2d.tilemap": "1.0.0",
|
"com.unity.2d.tilemap": "1.0.0",
|
||||||
|
"com.unity.2d.common": "11.0.1",
|
||||||
"com.unity.mathematics": "1.2.6",
|
"com.unity.mathematics": "1.2.6",
|
||||||
"com.unity.modules.animation": "1.0.0"
|
"com.unity.modules.animation": "1.0.0"
|
||||||
},
|
},
|
||||||
@@ -38,11 +38,11 @@
|
|||||||
"depth": 1,
|
"depth": 1,
|
||||||
"source": "registry",
|
"source": "registry",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.unity.burst": "1.8.4",
|
|
||||||
"com.unity.2d.sprite": "1.0.0",
|
"com.unity.2d.sprite": "1.0.0",
|
||||||
"com.unity.mathematics": "1.1.0",
|
"com.unity.mathematics": "1.1.0",
|
||||||
|
"com.unity.modules.uielements": "1.0.0",
|
||||||
"com.unity.modules.animation": "1.0.0",
|
"com.unity.modules.animation": "1.0.0",
|
||||||
"com.unity.modules.uielements": "1.0.0"
|
"com.unity.burst": "1.8.4"
|
||||||
},
|
},
|
||||||
"url": "https://packages.unity.com"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
@@ -68,8 +68,8 @@
|
|||||||
"depth": 0,
|
"depth": 0,
|
||||||
"source": "registry",
|
"source": "registry",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.unity.2d.common": "11.0.1",
|
|
||||||
"com.unity.mathematics": "1.1.0",
|
"com.unity.mathematics": "1.1.0",
|
||||||
|
"com.unity.2d.common": "11.0.1",
|
||||||
"com.unity.modules.physics2d": "1.0.0"
|
"com.unity.modules.physics2d": "1.0.0"
|
||||||
},
|
},
|
||||||
"url": "https://packages.unity.com"
|
"url": "https://packages.unity.com"
|
||||||
@@ -88,8 +88,8 @@
|
|||||||
"depth": 0,
|
"depth": 0,
|
||||||
"source": "registry",
|
"source": "registry",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.unity.2d.tilemap": "1.0.0",
|
|
||||||
"com.unity.modules.tilemap": "1.0.0",
|
"com.unity.modules.tilemap": "1.0.0",
|
||||||
|
"com.unity.2d.tilemap": "1.0.0",
|
||||||
"com.unity.modules.jsonserialize": "1.0.0"
|
"com.unity.modules.jsonserialize": "1.0.0"
|
||||||
},
|
},
|
||||||
"url": "https://packages.unity.com"
|
"url": "https://packages.unity.com"
|
||||||
@@ -118,8 +118,8 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.unity.burst": "1.8.19",
|
"com.unity.burst": "1.8.19",
|
||||||
"com.unity.mathematics": "1.3.2",
|
"com.unity.mathematics": "1.3.2",
|
||||||
"com.unity.test-framework": "1.4.6",
|
|
||||||
"com.unity.nuget.mono-cecil": "1.11.5",
|
"com.unity.nuget.mono-cecil": "1.11.5",
|
||||||
|
"com.unity.test-framework": "1.4.6",
|
||||||
"com.unity.test-framework.performance": "3.0.3"
|
"com.unity.test-framework.performance": "3.0.3"
|
||||||
},
|
},
|
||||||
"url": "https://packages.unity.com"
|
"url": "https://packages.unity.com"
|
||||||
@@ -286,13 +286,23 @@
|
|||||||
"depth": 0,
|
"depth": 0,
|
||||||
"source": "registry",
|
"source": "registry",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"com.unity.modules.audio": "1.0.0",
|
|
||||||
"com.unity.modules.director": "1.0.0",
|
"com.unity.modules.director": "1.0.0",
|
||||||
"com.unity.modules.animation": "1.0.0",
|
"com.unity.modules.animation": "1.0.0",
|
||||||
|
"com.unity.modules.audio": "1.0.0",
|
||||||
"com.unity.modules.particlesystem": "1.0.0"
|
"com.unity.modules.particlesystem": "1.0.0"
|
||||||
},
|
},
|
||||||
"url": "https://packages.unity.com"
|
"url": "https://packages.unity.com"
|
||||||
},
|
},
|
||||||
|
"com.unity.toolchain.linux-x86_64": {
|
||||||
|
"version": "2.0.10",
|
||||||
|
"depth": 0,
|
||||||
|
"source": "registry",
|
||||||
|
"dependencies": {
|
||||||
|
"com.unity.sysroot": "2.0.10",
|
||||||
|
"com.unity.sysroot.linux-x86_64": "2.0.9"
|
||||||
|
},
|
||||||
|
"url": "https://packages.unity.com"
|
||||||
|
},
|
||||||
"com.unity.toolchain.macos-arm64-linux-x86_64": {
|
"com.unity.toolchain.macos-arm64-linux-x86_64": {
|
||||||
"version": "2.0.4",
|
"version": "2.0.4",
|
||||||
"depth": 0,
|
"depth": 0,
|
||||||
|
|||||||
@@ -12,6 +12,7 @@ TagManager:
|
|||||||
- CoinBerry
|
- CoinBerry
|
||||||
- RandomBerry
|
- RandomBerry
|
||||||
- AntiBerry
|
- AntiBerry
|
||||||
|
- NothingBerry
|
||||||
layers:
|
layers:
|
||||||
- Default
|
- Default
|
||||||
- TransparentFX
|
- TransparentFX
|
||||||
|
|||||||
Reference in New Issue
Block a user