net.dreditor.minigames.debates 0.1.6 → 0.1.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.attestation.p7m +0 -0
- package/Absorbing/AbsorbBulletModeMechanic.cs +132 -132
- package/Absorbing/AbsorbBulletModeMechanic.cs.meta +11 -11
- package/Absorbing/AbsorbInputHandler.cs +76 -76
- package/Absorbing/AbsorbInputHandler.cs.meta +1 -1
- package/Absorbing/AbsorbMechanic.cs +70 -70
- package/Absorbing/AbsorbMechanic.cs.meta +1 -1
- package/Absorbing/IPathosAnswer.cs +19 -19
- package/Absorbing/IPathosAnswer.cs.meta +1 -1
- package/Absorbing/PathosAnswerModifier.cs +33 -33
- package/Absorbing/PathosAnswerModifier.cs.meta +1 -1
- package/Absorbing/PathosEvaluator.cs +69 -69
- package/Absorbing/PathosEvaluator.cs.meta +11 -11
- package/Absorbing.meta +8 -8
- package/BulletAnswerModifier.cs +26 -26
- package/BulletAnswerModifier.cs.meta +11 -11
- package/BulletModeUpdater.cs +61 -61
- package/BulletModeUpdater.cs.meta +11 -11
- package/CorrectBulletHitListener.cs +36 -36
- package/CorrectBulletHitListener.cs.meta +1 -1
- package/Counters/BulletEvaluator.cs +25 -25
- package/Counters/BulletEvaluator.cs.meta +11 -11
- package/Counters/BulletEvaluatorManager.cs +221 -221
- package/Counters/BulletEvaluatorManager.cs.meta +11 -11
- package/Counters/CounterConsent.cs +86 -86
- package/Counters/CounterConsent.cs.meta +11 -11
- package/Counters/CounterHandler.cs +93 -93
- package/Counters/CounterHandler.cs.meta +11 -11
- package/Counters/CounterHandlerBase.cs +17 -17
- package/Counters/CounterHandlerBase.cs.meta +11 -11
- package/Counters/CounterType.cs +33 -33
- package/Counters/CounterType.cs.meta +11 -11
- package/Counters/CounterUIType.cs +94 -94
- package/Counters/CounterUIType.cs.meta +11 -11
- package/Counters/CounterVideo.cs +74 -74
- package/Counters/CounterVideo.cs.meta +11 -11
- package/Counters/DebateEvaluator.cs +20 -20
- package/Counters/DebateEvaluator.cs.meta +11 -11
- package/Counters.meta +8 -8
- package/Cycling/BulletChamberUI.cs +57 -57
- package/Cycling/BulletChamberUI.cs.meta +11 -11
- package/Cycling/BulletCycleUI.cs +204 -204
- package/Cycling/BulletCycleUI.cs.meta +11 -11
- package/Cycling/BulletCycleUISpawner.cs +122 -122
- package/Cycling/BulletCycleUISpawner.cs.meta +1 -1
- package/Cycling/BulletIndicators.cs +62 -62
- package/Cycling/BulletIndicators.cs.meta +11 -11
- package/Cycling/BulletIndicatorsBase.cs +49 -49
- package/Cycling/BulletIndicatorsBase.cs.meta +1 -1
- package/Cycling/BulletSwapper.cs +307 -307
- package/Cycling/BulletSwapper.cs.meta +11 -11
- package/Cycling/BulletTextHandler.cs +54 -54
- package/Cycling/BulletTextHandler.cs.meta +11 -11
- package/Cycling/BulletTextSwapper.cs +114 -114
- package/Cycling/BulletTextSwapper.cs.meta +11 -11
- package/Cycling/CyclePosition.cs +59 -59
- package/Cycling/CyclePosition.cs.meta +11 -11
- package/Cycling/CycleTrackHandler.cs +267 -267
- package/Cycling/CycleTrackHandler.cs.meta +11 -11
- package/Cycling/CycleUIBullet.cs +46 -46
- package/Cycling/CycleUIBullet.cs.meta +11 -11
- package/Cycling/CycleUIBulletBase.cs +22 -22
- package/Cycling/CycleUIBulletBase.cs.meta +11 -11
- package/Cycling/CycleUIIndenter.cs +39 -39
- package/Cycling/CycleUIIndenter.cs.meta +11 -11
- package/Cycling/CycleUISprite.cs +39 -39
- package/Cycling/CycleUISprite.cs.meta +11 -11
- package/Cycling/CycleUIText.cs +29 -29
- package/Cycling/CycleUIText.cs.meta +11 -11
- package/Cycling/ICycleTracker.cs +30 -30
- package/Cycling/ICycleTracker.cs.meta +1 -1
- package/Cycling/ICycleUIStateComponent.cs +15 -15
- package/Cycling/ICycleUIStateComponent.cs.meta +11 -11
- package/Cycling/ICycleUITextComponent.cs +14 -14
- package/Cycling/ICycleUITextComponent.cs.meta +11 -11
- package/Cycling/IntroBulletCycleHandler.cs +314 -314
- package/Cycling/IntroBulletCycleHandler.cs.meta +11 -11
- package/Cycling/SpawnedCycleBulletsClearer.cs +66 -66
- package/Cycling/SpawnedCycleBulletsClearer.cs.meta +1 -1
- package/Cycling/SwapProcess.cs +280 -280
- package/Cycling/SwapProcess.cs.meta +11 -11
- package/Cycling/SwapProcessBase.cs +150 -150
- package/Cycling/SwapProcessBase.cs.meta +1 -1
- package/Cycling/TrackPathCalculator.cs +183 -183
- package/Cycling/TrackPathCalculator.cs.meta +1 -1
- package/Cycling.meta +8 -8
- package/DREditor.Minigames.Debates.asmdef +28 -28
- package/DREditor.Minigames.Debates.asmdef.meta +7 -7
- package/DebateBuilder.cs +66 -66
- package/DebateBuilder.cs.meta +11 -11
- package/DebateTextCamera.cs +56 -56
- package/DebateTextCamera.cs.meta +11 -11
- package/DebateTruthBulletMenu.cs +237 -237
- package/DebateTruthBulletMenu.cs.meta +11 -11
- package/Editor/AnimationArchitectureEditor.cs +38 -38
- package/Editor/AnimationArchitectureEditor.cs.meta +11 -11
- package/Editor/DREditor.Minigames.Debates.Editor.asmdef +42 -42
- package/Editor/DREditor.Minigames.Debates.Editor.asmdef.meta +7 -7
- package/Editor/DebateTypeEditor.cs +238 -238
- package/Editor/DebateTypeEditor.cs.meta +11 -11
- package/Editor/IDebateEditor.cs +53 -53
- package/Editor/IDebateEditor.cs.meta +11 -11
- package/Editor/MenuItemDebateUtility.cs +52 -52
- package/Editor/MenuItemDebateUtility.cs.meta +11 -11
- package/Editor/MultiPanelLineEditor.cs +41 -41
- package/Editor/MultiPanelLineEditor.cs.meta +11 -11
- package/Editor/PanelEditorConstants.cs +18 -18
- package/Editor/PanelEditorConstants.cs.meta +11 -11
- package/Editor/PanelLineEditor.cs +274 -274
- package/Editor/PanelLineEditor.cs.meta +11 -11
- package/Editor/PanelPhrasesEditor.cs +296 -296
- package/Editor/PanelPhrasesEditor.cs.meta +11 -11
- package/Editor/PartlyHitEditor.cs +75 -75
- package/Editor/PartlyHitEditor.cs.meta +11 -11
- package/Editor/PhraseAnimationArchitectureList.cs +22 -22
- package/Editor/PhraseAnimationArchitectureList.cs.meta +11 -11
- package/Editor/PhraseBaseDataEditor.cs +75 -75
- package/Editor/PhraseBaseDataEditor.cs.meta +11 -11
- package/Editor/PhraseBaseEditor.cs +35 -35
- package/Editor/PhraseBaseEditor.cs.meta +11 -11
- package/Editor/PhraseDataEditor.cs +74 -74
- package/Editor/PhraseDataEditor.cs.meta +11 -11
- package/Editor/PhraseEditor.cs +26 -26
- package/Editor/PhraseEditor.cs.meta +11 -11
- package/Editor/PhraseEditorBase.cs +156 -156
- package/Editor/PhraseEditorBase.cs.meta +11 -11
- package/Editor/PhraseModifierEditor.cs +38 -38
- package/Editor/PhraseModifierEditor.cs.meta +11 -11
- package/Editor/PhraseModifierList.cs +22 -22
- package/Editor/PhraseModifierList.cs.meta +11 -11
- package/Editor/PhrasePreset.cs +30 -30
- package/Editor/PhrasePreset.cs.meta +11 -11
- package/Editor/PhrasePresetDatabase.cs +41 -41
- package/Editor/PhrasePresetDatabase.cs.meta +11 -11
- package/Editor/PhrasePresetEditor.cs +230 -230
- package/Editor/PhrasePresetEditor.cs.meta +11 -11
- package/Editor/PhraseSectionEditor.cs +225 -225
- package/Editor/PhraseSectionEditor.cs.meta +11 -11
- package/Editor/PhraseSectionEditorBase.cs +133 -133
- package/Editor/PhraseSectionEditorBase.cs.meta +11 -11
- package/Editor/PhraseTypeList.cs +22 -22
- package/Editor/PhraseTypeList.cs.meta +11 -11
- package/Editor/ReplaceDebateAssetTextEditor.cs +81 -81
- package/Editor/ReplaceDebateAssetTextEditor.cs.meta +11 -11
- package/Editor/TextByArrayEditor.cs +148 -148
- package/Editor/TextByArrayEditor.cs.meta +11 -11
- package/Editor/VerifyMinigames.cs +120 -120
- package/Editor/VerifyMinigames.cs.meta +11 -11
- package/Editor.meta +8 -8
- package/FadeSentEventPhrase.cs +41 -41
- package/FadeSentEventPhrase.cs.meta +1 -1
- package/Firing/BulletFirer.cs +87 -87
- package/Firing/BulletFirer.cs.meta +11 -11
- package/Firing/BulletSilencer.cs +201 -201
- package/Firing/BulletSilencer.cs.meta +11 -11
- package/Firing/FireBulletTextAnimation.cs +240 -240
- package/Firing/FireBulletTextAnimation.cs.meta +11 -11
- package/Firing/FireBulletTextAnimationBase.cs +138 -138
- package/Firing/FireBulletTextAnimationBase.cs.meta +11 -11
- package/Firing/FireBulletUIHandler.cs +192 -192
- package/Firing/FireBulletUIHandler.cs.meta +11 -11
- package/Firing/FireTransformCalculator.cs +113 -113
- package/Firing/FireTransformCalculator.cs.meta +11 -11
- package/Firing/FireTransformCalculatorBase.cs +22 -22
- package/Firing/FireTransformCalculatorBase.cs.meta +11 -11
- package/Firing/FireTruthAnimationBase.cs +22 -22
- package/Firing/FireTruthAnimationBase.cs.meta +11 -11
- package/Firing/FiredBulletHandler.cs +94 -94
- package/Firing/FiredBulletHandler.cs.meta +11 -11
- package/Firing/FiredTruthHandler.cs +102 -102
- package/Firing/FiredTruthHandler.cs.meta +11 -11
- package/Firing/IFireBulletUI.cs +14 -14
- package/Firing/IFireBulletUI.cs.meta +11 -11
- package/Firing/IFireBulletUIEvent.cs +16 -16
- package/Firing/IFireBulletUIEvent.cs.meta +11 -11
- package/Firing/IReloadBulletUI.cs +14 -14
- package/Firing/IReloadBulletUI.cs.meta +11 -11
- package/Firing/ReloadBulletUIHandler.cs +229 -229
- package/Firing/ReloadBulletUIHandler.cs.meta +11 -11
- package/Firing/TiltCalculator.cs +130 -130
- package/Firing/TiltCalculator.cs.meta +11 -11
- package/Firing/TiltCalculatorBase.cs +17 -17
- package/Firing/TiltCalculatorBase.cs.meta +11 -11
- package/Firing.meta +8 -8
- package/GradientOverrideModifier.cs +31 -31
- package/GradientOverrideModifier.cs.meta +11 -11
- package/HittableModifierBase.cs +10 -10
- package/HittableModifierBase.cs.meta +11 -11
- package/IBulletEvaluatorManager.cs +42 -42
- package/IBulletEvaluatorManager.cs.meta +11 -11
- package/IBulletSendable.cs +17 -17
- package/IBulletSendable.cs.meta +11 -11
- package/IDebateConverter.cs +14 -14
- package/IDebateConverter.cs.meta +11 -11
- package/IDebateScanner.cs +14 -14
- package/IDebateScanner.cs.meta +11 -11
- package/IDebateSequence.cs +21 -21
- package/IDebateSequence.cs.meta +11 -11
- package/IDebateUIVisibility.cs +9 -9
- package/IDebateUIVisibility.cs.meta +11 -11
- package/IGradientOverride.cs +14 -14
- package/IGradientOverride.cs.meta +11 -11
- package/IMistakeModifier.cs +14 -14
- package/IMistakeModifier.cs.meta +11 -11
- package/IPhraseAnimationArchitecture.cs +21 -21
- package/IPhraseAnimationArchitecture.cs.meta +11 -11
- package/IPhraseAnimationComponent.cs +14 -14
- package/IPhraseAnimationComponent.cs.meta +11 -11
- package/IPhraseHandlerComponent.cs +21 -21
- package/IPhraseHandlerComponent.cs.meta +11 -11
- package/IPhraseHitListener.cs +14 -14
- package/IPhraseHitListener.cs.meta +11 -11
- package/IPhraseHittable.cs +22 -22
- package/IPhraseHittable.cs.meta +11 -11
- package/IPhraseModifier.cs +9 -9
- package/IPhraseModifier.cs.meta +11 -11
- package/IPhraseResetter.cs +14 -14
- package/IPhraseResetter.cs.meta +11 -11
- package/IPhraseRetriever.cs +16 -16
- package/IPhraseRetriever.cs.meta +1 -1
- package/IPhraseShatterListener.cs +13 -13
- package/IPhraseShatterListener.cs.meta +11 -11
- package/IPhraseShatterable.cs +29 -29
- package/IPhraseShatterable.cs.meta +11 -11
- package/ITextByArray.cs +42 -42
- package/ITextByArray.cs.meta +11 -11
- package/InputModifier.cs +59 -59
- package/InputModifier.cs.meta +11 -11
- package/InputModifierType.cs +85 -85
- package/InputModifierType.cs.meta +11 -11
- package/Managers/DebateContainsPhrasesWithModifierType.cs +37 -37
- package/Managers/DebateContainsPhrasesWithModifierType.cs.meta +1 -1
- package/Managers/DebateGroupManagerBase.cs +137 -137
- package/Managers/DebateGroupManagerBase.cs.meta +11 -11
- package/Managers/DebateLineManager.cs +156 -156
- package/Managers/DebateLineManager.cs.meta +11 -11
- package/Managers/DebateManager.cs +102 -102
- package/Managers/DebateManager.cs.meta +11 -11
- package/Managers/DebateManagerBase.cs +292 -292
- package/Managers/DebateManagerBase.cs.meta +11 -11
- package/Managers/DebatePanelManager.cs +51 -51
- package/Managers/DebatePanelManager.cs.meta +11 -11
- package/Managers/IDebateGroupManager.cs +35 -35
- package/Managers/IDebateGroupManager.cs.meta +11 -11
- package/Managers/IDebateLineManager.cs +31 -31
- package/Managers/IDebateLineManager.cs.meta +11 -11
- package/Managers/IPanelManager.cs +16 -16
- package/Managers/IPanelManager.cs.meta +11 -11
- package/Managers/IPhraseManager.cs +29 -29
- package/Managers/IPhraseManager.cs.meta +11 -11
- package/Managers/IPhraseResetManager.cs +14 -14
- package/Managers/IPhraseResetManager.cs.meta +11 -11
- package/Managers/PhraseCameraOnReset.cs +37 -37
- package/Managers/PhraseCameraOnReset.cs.meta +11 -11
- package/Managers/PhraseManager.cs +89 -89
- package/Managers/PhraseManager.cs.meta +11 -11
- package/Managers/PhraseManagerBase.cs +54 -54
- package/Managers/PhraseManagerBase.cs.meta +11 -11
- package/Managers/PhraseResetManager.cs +95 -95
- package/Managers/PhraseResetManager.cs.meta +11 -11
- package/Managers/WhiteNoiseManager.cs +33 -33
- package/Managers/WhiteNoiseManager.cs.meta +11 -11
- package/Managers.meta +8 -8
- package/Mechanics/ChildIndexOffsetter.cs +50 -50
- package/Mechanics/ChildIndexOffsetter.cs.meta +11 -11
- package/Mechanics/DebateVolumeManager.cs +106 -106
- package/Mechanics/DebateVolumeManager.cs.meta +11 -11
- package/Mechanics/FastHandler.cs +48 -48
- package/Mechanics/FastHandler.cs.meta +11 -11
- package/Mechanics/IBulletCycleUI.cs +19 -19
- package/Mechanics/IBulletCycleUI.cs.meta +11 -11
- package/Mechanics/IBulletSwapperUI.cs +16 -16
- package/Mechanics/IBulletSwapperUI.cs.meta +11 -11
- package/Mechanics/ICycleListener.cs +15 -15
- package/Mechanics/ICycleListener.cs.meta +11 -11
- package/Mechanics/IPanelCounter.cs +15 -15
- package/Mechanics/IPanelCounter.cs.meta +11 -11
- package/Mechanics/IPanelLineListener.cs +16 -16
- package/Mechanics/IPanelLineListener.cs.meta +11 -11
- package/Mechanics/IPanelSendable.cs +15 -15
- package/Mechanics/IPanelSendable.cs.meta +11 -11
- package/Mechanics/IPanelsResolvedListener.cs +13 -13
- package/Mechanics/IPanelsResolvedListener.cs.meta +11 -11
- package/Mechanics/IPanelsStoppedListener.cs +13 -13
- package/Mechanics/IPanelsStoppedListener.cs.meta +11 -11
- package/Mechanics/IReloadResolverRoutine.cs +15 -15
- package/Mechanics/IReloadResolverRoutine.cs.meta +11 -11
- package/Mechanics/SlowHandler.cs +145 -145
- package/Mechanics/SlowHandler.cs.meta +11 -11
- package/Mechanics/SpeedHandlerBase.cs +278 -278
- package/Mechanics/SpeedHandlerBase.cs.meta +11 -11
- package/Mechanics.meta +8 -8
- package/Panel.cs +61 -61
- package/Panel.cs.meta +11 -11
- package/PartlyHitModifier.cs +78 -78
- package/PartlyHitModifier.cs.meta +11 -11
- package/Phrase.cs +69 -69
- package/Phrase.cs.meta +11 -11
- package/PhraseBase.cs +164 -164
- package/PhraseBase.cs.meta +11 -11
- package/PhraseHandling/IHitBoxOverride.cs +19 -19
- package/PhraseHandling/IHitBoxOverride.cs.meta +11 -11
- package/PhraseHandling/LineTextExtension.cs +85 -85
- package/PhraseHandling/LineTextExtension.cs.meta +11 -11
- package/PhraseHandling/PartlyHitHandler.cs +299 -299
- package/PhraseHandling/PartlyHitHandler.cs.meta +11 -11
- package/PhraseHandling/PhraseGradientHandler.cs +146 -146
- package/PhraseHandling/PhraseGradientHandler.cs.meta +11 -11
- package/PhraseHandling/PhraseHitboxHandler.cs +124 -124
- package/PhraseHandling/PhraseHitboxHandler.cs.meta +11 -11
- package/PhraseHandling/PhraseText.cs +41 -41
- package/PhraseHandling/PhraseText.cs.meta +11 -11
- package/PhraseHandling/PhraseTextComponentBase.cs +52 -52
- package/PhraseHandling/PhraseTextComponentBase.cs.meta +11 -11
- package/PhraseHandling/PhraseTextHandlerBase.cs +85 -85
- package/PhraseHandling/PhraseTextHandlerBase.cs.meta +11 -11
- package/PhraseHandling/ShatterablePhraseText.cs +123 -123
- package/PhraseHandling/ShatterablePhraseText.cs.meta +11 -11
- package/PhraseHandling/WhiteNoiseText.cs +22 -22
- package/PhraseHandling/WhiteNoiseText.cs.meta +11 -11
- package/PhraseHandling.meta +8 -8
- package/PhraseModifierBase.cs +20 -20
- package/PhraseModifierBase.cs.meta +11 -11
- package/PhraseTextBase.cs +68 -68
- package/PhraseTextBase.cs.meta +11 -11
- package/RailTextUpdater.cs +87 -87
- package/RailTextUpdater.cs.meta +1 -1
- package/{Samples → Samples~}/Absorbable.asset +14 -14
- package/{Samples → Samples~}/Absorbable.asset.meta +8 -8
- package/{Samples → Samples~}/Absorbing.asset +21 -21
- package/{Samples → Samples~}/Absorbing.asset.meta +8 -8
- package/{Samples → Samples~}/BulletEndPositionOffset.asset +25 -25
- package/{Samples → Samples~}/BulletEndPositionOffset.asset.meta +8 -8
- package/{Samples → Samples~}/BulletFired.asset +21 -21
- package/{Samples → Samples~}/BulletFired.asset.meta +8 -8
- package/{Samples → Samples~}/BulletRestPosition.asset +25 -25
- package/{Samples → Samples~}/BulletRestPosition.asset.meta +8 -8
- package/{Samples → Samples~}/BulletText.asset +21 -21
- package/{Samples → Samples~}/BulletText.asset.meta +8 -8
- package/{Samples → Samples~}/Bullet_Evaluator_Manager_Shell.prefab +75 -75
- package/{Samples → Samples~}/Bullet_Evaluator_Manager_Shell.prefab.meta +7 -7
- package/{Samples → Samples~}/Bullet_Evaluator_Manager_Template.prefab +378 -378
- package/{Samples → Samples~}/Bullet_Evaluator_Manager_Template.prefab.meta +7 -7
- package/{Samples → Samples~}/Bullet_Firer.prefab +149 -149
- package/{Samples → Samples~}/Bullet_Firer.prefab.meta +7 -7
- package/{Samples → Samples~}/Bullet_Indicator_ETemplate.prefab +78 -78
- package/{Samples → Samples~}/Bullet_Indicator_ETemplate.prefab.meta +7 -7
- package/{Samples → Samples~}/Bullet_Indicators_Shell.prefab +194 -194
- package/{Samples → Samples~}/Bullet_Indicators_Shell.prefab.meta +7 -7
- package/{Samples → Samples~}/Bullet_Indicators_Template.prefab +948 -948
- package/{Samples → Samples~}/Bullet_Indicators_Template.prefab.meta +7 -7
- package/{Samples → Samples~}/Bullet_Mode_Updater.prefab +56 -56
- package/{Samples → Samples~}/Bullet_Mode_Updater.prefab.meta +7 -7
- package/{Samples → Samples~}/Bullet_Silencer.prefab +92 -92
- package/{Samples → Samples~}/Bullet_Silencer.prefab.meta +7 -7
- package/{Samples → Samples~}/Bullet_UI_ETemplate.prefab +125 -125
- package/{Samples → Samples~}/Bullet_UI_ETemplate.prefab.meta +7 -7
- package/{Samples → Samples~}/Bullet_UI_Shell.prefab +533 -533
- package/{Samples → Samples~}/Bullet_UI_Shell.prefab.meta +7 -7
- package/{Samples → Samples~}/CanCycle.asset +21 -21
- package/{Samples → Samples~}/CanCycle.asset.meta +8 -8
- package/{Samples → Samples~}/CanFire.asset +21 -21
- package/{Samples → Samples~}/CanFire.asset.meta +8 -8
- package/{Samples → Samples~}/Check_Mode_Bullet_Hit.prefab +142 -142
- package/{Samples → Samples~}/Check_Mode_Bullet_Hit.prefab.meta +7 -7
- package/{Samples → Samples~}/Counter_Canvas_ETemplate.prefab +144 -144
- package/{Samples → Samples~}/Counter_Canvas_ETemplate.prefab.meta +7 -7
- package/{Samples → Samples~}/Counter_Handler_Shell.prefab +49 -49
- package/{Samples → Samples~}/Counter_Handler_Shell.prefab.meta +7 -7
- package/{Samples → Samples~}/Counter_Handler_Template.prefab +928 -928
- package/{Samples → Samples~}/Counter_Handler_Template.prefab.meta +7 -7
- package/{Samples → Samples~}/Create_Mode_Bullet_SFX.prefab +78 -78
- package/{Samples → Samples~}/Create_Mode_Bullet_SFX.prefab.meta +7 -7
- package/{Samples → Samples~}/CurrentBulletIndex.asset +21 -21
- package/{Samples → Samples~}/CurrentBulletIndex.asset.meta +8 -8
- package/{Samples → Samples~}/CyclePass.asset +21 -21
- package/{Samples → Samples~}/CyclePass.asset.meta +8 -8
- package/{Samples → Samples~}/Cycle_Bullet_ETemplate.prefab +287 -287
- package/{Samples → Samples~}/Cycle_Bullet_ETemplate.prefab.meta +7 -7
- package/{Samples → Samples~}/Cycle_Track_Handler.prefab +645 -645
- package/{Samples → Samples~}/Cycle_Track_Handler.prefab.meta +7 -7
- package/{Samples → Samples~}/Cycle_UI_Canvas_Shell.prefab +238 -238
- package/{Samples → Samples~}/Cycle_UI_Canvas_Shell.prefab.meta +7 -7
- package/{Samples → Samples~}/Cycle_UI_Canvas_Template.prefab +364 -364
- package/{Samples → Samples~}/Cycle_UI_Canvas_Template.prefab.meta +7 -7
- package/{Samples → Samples~}/Debate_Line_Manager.prefab +49 -49
- package/{Samples → Samples~}/Debate_Line_Manager.prefab.meta +7 -7
- package/{Samples → Samples~}/Debate_Line_Processes.prefab +513 -513
- package/{Samples → Samples~}/Debate_Line_Processes.prefab.meta +7 -7
- package/{Samples → Samples~}/Debate_Panel_Manager.prefab +47 -47
- package/{Samples → Samples~}/Debate_Panel_Manager.prefab.meta +7 -7
- package/{Samples → Samples~}/Debate_Truth_Bullet_Menu_Shell.prefab +55 -55
- package/{Samples → Samples~}/Debate_Truth_Bullet_Menu_Shell.prefab.meta +7 -7
- package/{Samples → Samples~}/Debate_Truth_Bullet_Menu_Template.prefab +213 -213
- package/{Samples → Samples~}/Debate_Truth_Bullet_Menu_Template.prefab.meta +7 -7
- package/{Samples → Samples~}/Debate_Volume_Manager.prefab +56 -56
- package/{Samples → Samples~}/Debate_Volume_Manager.prefab.meta +7 -7
- package/{Samples → Samples~}/DisplayEmpathyMode.asset +15 -15
- package/{Samples → Samples~}/DisplayEmpathyMode.asset.meta +8 -8
- package/{Samples → Samples~}/Empathy_Mechanic.prefab +224 -224
- package/{Samples → Samples~}/Empathy_Mechanic.prefab.meta +7 -7
- package/{Samples → Samples~}/EndEmpathyMode.asset +15 -15
- package/{Samples → Samples~}/EndEmpathyMode.asset.meta +8 -8
- package/{Samples → Samples~}/Fast_Handler_ETemplate.prefab +80 -80
- package/{Samples → Samples~}/Fast_Handler_ETemplate.prefab.meta +7 -7
- package/{Samples → Samples~}/FireBulletCameraEnabled.asset +21 -21
- package/{Samples → Samples~}/FireBulletCameraEnabled.asset.meta +8 -8
- package/{Samples → Samples~}/Fire_Bullet_Camera.prefab +144 -144
- package/{Samples → Samples~}/Fire_Bullet_Camera.prefab.meta +7 -7
- package/{Samples → Samples~}/Fire_Bullet_Condition.prefab +66 -66
- package/{Samples → Samples~}/Fire_Bullet_Condition.prefab.meta +7 -7
- package/{Samples → Samples~}/Fire_Bullet_Text_ETemplate.prefab +549 -549
- package/{Samples → Samples~}/Fire_Bullet_Text_ETemplate.prefab.meta +7 -7
- package/{Samples → Samples~}/Fire_Bullet_UI_Handler_Shell.prefab +151 -151
- package/{Samples → Samples~}/Fire_Bullet_UI_Handler_Shell.prefab.meta +7 -7
- package/{Samples → Samples~}/Fire_Bullet_UI_Handler_Template.prefab +272 -272
- package/{Samples → Samples~}/Fire_Bullet_UI_Handler_Template.prefab.meta +7 -7
- package/{Samples → Samples~}/Fired_Bullet_Handler_Shell.prefab +50 -50
- package/{Samples → Samples~}/Fired_Bullet_Handler_Shell.prefab.meta +7 -7
- package/{Samples → Samples~}/Fired_Bullet_Handler_Template.prefab +293 -293
- package/{Samples → Samples~}/Fired_Bullet_Handler_Template.prefab.meta +7 -7
- package/{Samples → Samples~}/Hittable.asset +15 -15
- package/{Samples → Samples~}/Hittable.asset.meta +8 -8
- package/{Samples → Samples~}/InCycle.asset +21 -21
- package/{Samples → Samples~}/InCycle.asset.meta +8 -8
- package/{Samples → Samples~}/InDebate.asset +21 -21
- package/{Samples → Samples~}/InDebate.asset.meta +8 -8
- package/{Samples → Samples~}/InEmpathy.asset +21 -21
- package/{Samples → Samples~}/InEmpathy.asset.meta +8 -8
- package/{Samples → Samples~}/InLieMode.asset +21 -21
- package/{Samples → Samples~}/InLieMode.asset.meta +8 -8
- package/{Samples → Samples~}/IsChangingSpeed.asset +21 -21
- package/{Samples → Samples~}/IsChangingSpeed.asset.meta +8 -8
- package/{Samples → Samples~}/IsReloading.asset +21 -21
- package/{Samples → Samples~}/IsReloading.asset.meta +8 -8
- package/{Samples → Samples~}/OnDebateIntroResolved.asset +15 -15
- package/{Samples → Samples~}/OnDebateIntroResolved.asset.meta +8 -8
- package/{Samples → Samples~}/OnPhraseShot.asset +15 -15
- package/{Samples → Samples~}/OnPhraseShot.asset.meta +8 -8
- package/{Samples → Samples~}/OnReloadStarted.asset +15 -15
- package/{Samples → Samples~}/OnReloadStarted.asset.meta +8 -8
- package/{Samples → Samples~}/On_End_Bullet_Mode.prefab +103 -103
- package/{Samples → Samples~}/On_End_Bullet_Mode.prefab.meta +7 -7
- package/{Samples → Samples~}/On_Start_Bullet_Mode.prefab +76 -76
- package/{Samples → Samples~}/On_Start_Bullet_Mode.prefab.meta +7 -7
- package/{Samples → Samples~}/Panel_Counter_Indicator_Shell.prefab +84 -84
- package/{Samples → Samples~}/Panel_Counter_Indicator_Shell.prefab.meta +7 -7
- package/{Samples → Samples~}/Panel_Counter_Indicator_Template.prefab +268 -268
- package/{Samples → Samples~}/Panel_Counter_Indicator_Template.prefab.meta +7 -7
- package/{Samples → Samples~}/Panel_Counter_Speaker_Shell.prefab +59 -59
- package/{Samples → Samples~}/Panel_Counter_Speaker_Shell.prefab.meta +7 -7
- package/{Samples → Samples~}/Panel_Counter_Speaker_Template.prefab +545 -545
- package/{Samples → Samples~}/Panel_Counter_Speaker_Template.prefab.meta +7 -7
- package/{Samples → Samples~}/Panel_Icon_ETemplate.prefab +78 -78
- package/{Samples → Samples~}/Panel_Icon_ETemplate.prefab.meta +7 -7
- package/{Samples → Samples~}/PhrasePresetDatabase.preset +533 -533
- package/{Samples → Samples~}/PhrasePresetDatabase.preset.meta +8 -8
- package/{Samples → Samples~}/Phrase_Is_Absorbable_Condition.prefab +57 -57
- package/{Samples → Samples~}/Phrase_Is_Absorbable_Condition.prefab.meta +7 -7
- package/{Samples → Samples~}/Phrase_Manager_Shell.prefab +47 -47
- package/{Samples → Samples~}/Phrase_Manager_Shell.prefab.meta +7 -7
- package/{Samples → Samples~}/Phrase_Manager_Template.prefab +1544 -1544
- package/{Samples → Samples~}/Phrase_Manager_Template.prefab.meta +7 -7
- package/{Samples → Samples~}/Phrase_Reset_Manager.prefab +47 -47
- package/{Samples → Samples~}/Phrase_Reset_Manager.prefab.meta +7 -7
- package/{Samples → Samples~}/Phrase_Shell.prefab +50 -50
- package/{Samples → Samples~}/Phrase_Shell.prefab.meta +7 -7
- package/{Samples → Samples~}/Phrase_Template.prefab +271 -271
- package/{Samples → Samples~}/Phrase_Template.prefab.meta +7 -7
- package/{Samples → Samples~}/Phrase_Text.prefab +125 -125
- package/{Samples → Samples~}/Phrase_Text.prefab.meta +7 -7
- package/{Samples → Samples~}/Phrase_Text_Shell.prefab +355 -355
- package/{Samples → Samples~}/Phrase_Text_Shell.prefab.meta +7 -7
- package/{Samples → Samples~}/Phrase_Text_White_Noise.prefab +201 -201
- package/{Samples → Samples~}/Phrase_Text_White_Noise.prefab.meta +7 -7
- package/{Samples → Samples~}/Reset_Mode_On_Reload.prefab +104 -104
- package/{Samples → Samples~}/Reset_Mode_On_Reload.prefab.meta +7 -7
- package/{Samples → Samples~}/SetBulletText.asset +15 -15
- package/{Samples → Samples~}/SetBulletText.asset.meta +8 -8
- package/{Samples → Samples~}/Set_Controls_On_Bullet_Mode.prefab +106 -106
- package/{Samples → Samples~}/Set_Controls_On_Bullet_Mode.prefab.meta +7 -7
- package/{Samples → Samples~}/Silencable.asset +14 -14
- package/{Samples → Samples~}/Silencable.asset.meta +8 -8
- package/{Samples → Samples~}/Slow_Handler_ETemplate.prefab +82 -82
- package/{Samples → Samples~}/Slow_Handler_ETemplate.prefab.meta +7 -7
- package/{Samples → Samples~}/StartEmpathyMode.asset +15 -15
- package/{Samples → Samples~}/StartEmpathyMode.asset.meta +8 -8
- package/{Samples → Samples~}/White_Noise_Manager_Shell.prefab +47 -47
- package/{Samples → Samples~}/White_Noise_Manager_Shell.prefab.meta +7 -7
- package/{Samples → Samples~}/White_Noise_Manager_Template.prefab +856 -856
- package/{Samples → Samples~}/White_Noise_Manager_Template.prefab.meta +7 -7
- package/{Samples → Samples~}/White_Noise_Template.prefab +239 -239
- package/{Samples → Samples~}/White_Noise_Template.prefab.meta +7 -7
- package/UI/BulletSwapperVisibility.cs +156 -156
- package/UI/BulletSwapperVisibility.cs.meta +11 -11
- package/UI/DebateVisibilityUI.cs +30 -30
- package/UI/DebateVisibilityUI.cs.meta +11 -11
- package/UI/PanelCounterBase.cs +78 -78
- package/UI/PanelCounterBase.cs.meta +11 -11
- package/UI/PanelCounterIndicator.cs +111 -111
- package/UI/PanelCounterIndicator.cs.meta +11 -11
- package/UI/PanelCounterSpeaker.cs +102 -102
- package/UI/PanelCounterSpeaker.cs.meta +11 -11
- package/UI/PhraseHasModifierType.cs +26 -26
- package/UI/PhraseHasModifierType.cs.meta +11 -11
- package/UI/PhraseMatchesInputType.cs +34 -34
- package/UI/PhraseMatchesInputType.cs.meta +1 -1
- package/UI.meta +8 -8
- package/WhiteNoise.cs +10 -10
- package/WhiteNoise.cs.meta +11 -11
- package/package.json +49 -44
- package/package.json.meta +7 -7
- package/Samples.meta +0 -8
|
@@ -1,268 +1,268 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
#if DOTWEEN
|
|
3
|
-
using DG.Tweening;
|
|
4
|
-
#endif
|
|
5
|
-
using DREditor.Minigames.Debates.Mechanics;
|
|
6
|
-
using DREditor.Investigations;
|
|
7
|
-
using DREditor.UIHandling;
|
|
8
|
-
using System.Collections;
|
|
9
|
-
using System.Collections.Generic;
|
|
10
|
-
using System.Linq;
|
|
11
|
-
using UnityEngine;
|
|
12
|
-
|
|
13
|
-
namespace DREditor.Minigames.Debates.Cycling
|
|
14
|
-
{
|
|
15
|
-
/// <summary>
|
|
16
|
-
///
|
|
17
|
-
/// </summary>
|
|
18
|
-
[ClassHeader(nameof(UIVisibilityComponent) + ", " + nameof(IUIVisibility) + ", " +
|
|
19
|
-
nameof(ICycleListener) + ", " + nameof(IBulletSendable) + ", " + nameof(ICycleTracker) +
|
|
20
|
-
"\n\n")]
|
|
21
|
-
public class CycleTrackHandler : UIVisibilityComponent, ICycleListener, IBulletSendable, ICycleTracker
|
|
22
|
-
{
|
|
23
|
-
/// <summary>
|
|
24
|
-
///
|
|
25
|
-
/// </summary>
|
|
26
|
-
[Tooltip("")]
|
|
27
|
-
[SerializeField] protected List<CyclePosition> positions = new();
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
/// <summary>
|
|
31
|
-
///
|
|
32
|
-
/// </summary>
|
|
33
|
-
[Header("")]
|
|
34
|
-
[Divider]
|
|
35
|
-
[Tooltip("")]
|
|
36
|
-
[SerializeField] protected int firstVisible = 3;
|
|
37
|
-
|
|
38
|
-
/// <summary>
|
|
39
|
-
///
|
|
40
|
-
/// </summary>
|
|
41
|
-
[Tooltip("")]
|
|
42
|
-
[SerializeField] protected int notVisible = 1;
|
|
43
|
-
|
|
44
|
-
/// <summary>
|
|
45
|
-
///
|
|
46
|
-
/// </summary>
|
|
47
|
-
[Tooltip("")]
|
|
48
|
-
[SerializeField] protected int maxVisible = 5;
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
/// <summary>
|
|
52
|
-
///
|
|
53
|
-
/// </summary>
|
|
54
|
-
[Header("")]
|
|
55
|
-
[Divider]
|
|
56
|
-
[Tooltip("")]
|
|
57
|
-
[SerializeField] protected float toFirstDuration = 0.5f;
|
|
58
|
-
|
|
59
|
-
/// <summary>
|
|
60
|
-
///
|
|
61
|
-
/// </summary>
|
|
62
|
-
[Tooltip("")]
|
|
63
|
-
[SerializeField] protected float toPositionDuration = 0.2f;
|
|
64
|
-
|
|
65
|
-
/// <summary>
|
|
66
|
-
///
|
|
67
|
-
/// </summary>
|
|
68
|
-
[Tooltip("")]
|
|
69
|
-
[SerializeField] protected float cycleDuration = 0.2f;
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
/// <summary>
|
|
73
|
-
///
|
|
74
|
-
/// </summary>
|
|
75
|
-
protected int bulletCount = 0;
|
|
76
|
-
|
|
77
|
-
/// <summary>
|
|
78
|
-
///
|
|
79
|
-
/// </summary>
|
|
80
|
-
protected bool moveForwardOnFinal = false;
|
|
81
|
-
|
|
82
|
-
/// <summary>
|
|
83
|
-
///
|
|
84
|
-
/// </summary>
|
|
85
|
-
protected TrackPathCalculator pathCalculator;
|
|
86
|
-
|
|
87
|
-
/// <summary>
|
|
88
|
-
///
|
|
89
|
-
/// </summary>
|
|
90
|
-
protected readonly Dictionary<Transform, CyclePosition> pairs = new();
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
protected virtual void Awake() => pathCalculator = new TrackPathCalculator(positions, firstVisible, notVisible);
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
/// <summary>
|
|
97
|
-
///
|
|
98
|
-
/// </summary>
|
|
99
|
-
/// <param name="transform"></param>
|
|
100
|
-
/// <remarks></remarks>
|
|
101
|
-
public virtual void OnTransformSpawned(Transform transform)
|
|
102
|
-
{
|
|
103
|
-
MoveAll(true, true);
|
|
104
|
-
|
|
105
|
-
Register(transform);
|
|
106
|
-
|
|
107
|
-
MoveToFirstPosition(transform, true);
|
|
108
|
-
|
|
109
|
-
Show();
|
|
110
|
-
|
|
111
|
-
if (MoveForwardOnFinal())
|
|
112
|
-
MoveAll(true, true);
|
|
113
|
-
}
|
|
114
|
-
|
|
115
|
-
/// <summary>
|
|
116
|
-
///
|
|
117
|
-
/// </summary>
|
|
118
|
-
/// <returns></returns>
|
|
119
|
-
protected virtual bool MoveForwardOnFinal() => moveForwardOnFinal && pairs.Count == bulletCount;
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
/// <inheritdoc/>
|
|
123
|
-
public virtual void OnSentBullets(List<TruthBullet> bullets)
|
|
124
|
-
{
|
|
125
|
-
bulletCount = bullets.Count;
|
|
126
|
-
|
|
127
|
-
pathCalculator.InitializeVisibility(bulletCount, maxVisible);
|
|
128
|
-
|
|
129
|
-
if (pairs.Count > 0)
|
|
130
|
-
moveForwardOnFinal = true;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
/// <inheritdoc/>
|
|
135
|
-
public virtual void OnBulletCycled(bool isUp) => MoveAll(!isUp);
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
/// <inheritdoc/>
|
|
139
|
-
public virtual void MoveAll(bool forward, bool immediate = false)
|
|
140
|
-
{
|
|
141
|
-
foreach (Transform transform in pairs.Keys.ToList())
|
|
142
|
-
MoveTransform(transform, forward, immediate ? 0f : cycleDuration);
|
|
143
|
-
}
|
|
144
|
-
|
|
145
|
-
/// <summary>
|
|
146
|
-
///
|
|
147
|
-
/// </summary>
|
|
148
|
-
/// <param name="transform"></param>
|
|
149
|
-
/// <param name="forward"></param>
|
|
150
|
-
/// <param name="duration"></param>
|
|
151
|
-
protected virtual void MoveTransform(Transform transform, bool forward, float duration)
|
|
152
|
-
{
|
|
153
|
-
#if DOTWEEN
|
|
154
|
-
transform.DOKill();
|
|
155
|
-
#endif
|
|
156
|
-
Register(transform);
|
|
157
|
-
|
|
158
|
-
CyclePosition currentPos = pairs[transform];
|
|
159
|
-
|
|
160
|
-
var (path, nextPosition) = pathCalculator.CalculateCyclePath(currentPos, forward, pairs.Count);
|
|
161
|
-
|
|
162
|
-
if (duration <= 0f)
|
|
163
|
-
transform.position = path.Last();
|
|
164
|
-
else
|
|
165
|
-
#if DOTWEEN
|
|
166
|
-
transform.DOPath(path, duration);
|
|
167
|
-
#else
|
|
168
|
-
transform.position = pairs[transform].GetSubPositions()[0];
|
|
169
|
-
#endif
|
|
170
|
-
|
|
171
|
-
pairs[transform] = nextPosition;
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
/// <inheritdoc/>
|
|
176
|
-
public virtual float MoveToFirstPosition(Transform transform, bool immediate = false)
|
|
177
|
-
{
|
|
178
|
-
if (positions.Count == 0 || positions[0] == null)
|
|
179
|
-
return 0;
|
|
180
|
-
|
|
181
|
-
float duration = immediate ? 0f : toFirstDuration;
|
|
182
|
-
|
|
183
|
-
Vector3 targetPos = positions[0].transform.position;
|
|
184
|
-
#if DOTWEEN
|
|
185
|
-
transform.DOKill();
|
|
186
|
-
#endif
|
|
187
|
-
if (immediate)
|
|
188
|
-
{
|
|
189
|
-
transform.position = targetPos;
|
|
190
|
-
|
|
191
|
-
Register(transform);
|
|
192
|
-
}
|
|
193
|
-
else
|
|
194
|
-
#if DOTWEEN
|
|
195
|
-
transform.DOMove(targetPos, duration)
|
|
196
|
-
.OnComplete(() => Register(transform));
|
|
197
|
-
#else
|
|
198
|
-
transform.Translate(targetPos);
|
|
199
|
-
#endif
|
|
200
|
-
return duration;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
/// <summary>
|
|
204
|
-
///
|
|
205
|
-
/// </summary>
|
|
206
|
-
/// <param name="transform"></param>
|
|
207
|
-
protected virtual void Register(Transform transform)
|
|
208
|
-
{
|
|
209
|
-
if (!pairs.ContainsKey(transform) && positions.Count > 0 && positions[0] != null)
|
|
210
|
-
pairs.Add(transform, positions[0]);
|
|
211
|
-
}
|
|
212
|
-
|
|
213
|
-
/// <inheritdoc/>
|
|
214
|
-
public virtual void ClearTrack() => pairs.Clear();
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
/// <inheritdoc/>
|
|
218
|
-
protected override void ShowUI()
|
|
219
|
-
{
|
|
220
|
-
foreach (var pair in pairs)
|
|
221
|
-
{
|
|
222
|
-
#if DOTWEEN
|
|
223
|
-
pair.Key.DOKill();
|
|
224
|
-
|
|
225
|
-
pair.Key.DOMove(pair.Value.transform.position, toPositionDuration);
|
|
226
|
-
#endif
|
|
227
|
-
}
|
|
228
|
-
}
|
|
229
|
-
|
|
230
|
-
/// <inheritdoc/>
|
|
231
|
-
protected override void HideUI()
|
|
232
|
-
{
|
|
233
|
-
foreach (var pair in pairs)
|
|
234
|
-
{
|
|
235
|
-
#if DOTWEEN
|
|
236
|
-
pair.Key.DOKill();
|
|
237
|
-
#endif
|
|
238
|
-
if (pathCalculator.InVisibleRange(pair.Value))
|
|
239
|
-
continue;
|
|
240
|
-
|
|
241
|
-
MoveToFirstPosition(pair.Key);
|
|
242
|
-
}
|
|
243
|
-
}
|
|
244
|
-
|
|
245
|
-
/// <inheritdoc/>
|
|
246
|
-
protected override IEnumerator WaitForUIToComplete()
|
|
247
|
-
{
|
|
248
|
-
#if DOTWEEN
|
|
249
|
-
if (pairs.Keys.Count > 0)
|
|
250
|
-
yield return new WaitUntil(() => !DOTween.IsTweening(pairs.Keys.First()));
|
|
251
|
-
#endif
|
|
252
|
-
yield return null;
|
|
253
|
-
}
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
protected virtual void OnDrawGizmos()
|
|
257
|
-
{
|
|
258
|
-
Gizmos.color = Color.green;
|
|
259
|
-
|
|
260
|
-
for (int i = 0; i < positions.Count; i++)
|
|
261
|
-
{
|
|
262
|
-
int endPositionIndex = i != positions.Count - 1 ? i + 1 : 0;
|
|
263
|
-
|
|
264
|
-
Gizmos.DrawLine(positions[i].GetSubPositions()[^1], positions[endPositionIndex].transform.position);
|
|
265
|
-
}
|
|
266
|
-
}
|
|
267
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
#if DOTWEEN
|
|
3
|
+
using DG.Tweening;
|
|
4
|
+
#endif
|
|
5
|
+
using DREditor.Minigames.Debates.Mechanics;
|
|
6
|
+
using DREditor.Investigations;
|
|
7
|
+
using DREditor.UIHandling;
|
|
8
|
+
using System.Collections;
|
|
9
|
+
using System.Collections.Generic;
|
|
10
|
+
using System.Linq;
|
|
11
|
+
using UnityEngine;
|
|
12
|
+
|
|
13
|
+
namespace DREditor.Minigames.Debates.Cycling
|
|
14
|
+
{
|
|
15
|
+
/// <summary>
|
|
16
|
+
///
|
|
17
|
+
/// </summary>
|
|
18
|
+
[ClassHeader(nameof(UIVisibilityComponent) + ", " + nameof(IUIVisibility) + ", " +
|
|
19
|
+
nameof(ICycleListener) + ", " + nameof(IBulletSendable) + ", " + nameof(ICycleTracker) +
|
|
20
|
+
"\n\n")]
|
|
21
|
+
public class CycleTrackHandler : UIVisibilityComponent, ICycleListener, IBulletSendable, ICycleTracker
|
|
22
|
+
{
|
|
23
|
+
/// <summary>
|
|
24
|
+
///
|
|
25
|
+
/// </summary>
|
|
26
|
+
[Tooltip("")]
|
|
27
|
+
[SerializeField] protected List<CyclePosition> positions = new();
|
|
28
|
+
|
|
29
|
+
|
|
30
|
+
/// <summary>
|
|
31
|
+
///
|
|
32
|
+
/// </summary>
|
|
33
|
+
[Header("")]
|
|
34
|
+
[Divider]
|
|
35
|
+
[Tooltip("")]
|
|
36
|
+
[SerializeField] protected int firstVisible = 3;
|
|
37
|
+
|
|
38
|
+
/// <summary>
|
|
39
|
+
///
|
|
40
|
+
/// </summary>
|
|
41
|
+
[Tooltip("")]
|
|
42
|
+
[SerializeField] protected int notVisible = 1;
|
|
43
|
+
|
|
44
|
+
/// <summary>
|
|
45
|
+
///
|
|
46
|
+
/// </summary>
|
|
47
|
+
[Tooltip("")]
|
|
48
|
+
[SerializeField] protected int maxVisible = 5;
|
|
49
|
+
|
|
50
|
+
|
|
51
|
+
/// <summary>
|
|
52
|
+
///
|
|
53
|
+
/// </summary>
|
|
54
|
+
[Header("")]
|
|
55
|
+
[Divider]
|
|
56
|
+
[Tooltip("")]
|
|
57
|
+
[SerializeField] protected float toFirstDuration = 0.5f;
|
|
58
|
+
|
|
59
|
+
/// <summary>
|
|
60
|
+
///
|
|
61
|
+
/// </summary>
|
|
62
|
+
[Tooltip("")]
|
|
63
|
+
[SerializeField] protected float toPositionDuration = 0.2f;
|
|
64
|
+
|
|
65
|
+
/// <summary>
|
|
66
|
+
///
|
|
67
|
+
/// </summary>
|
|
68
|
+
[Tooltip("")]
|
|
69
|
+
[SerializeField] protected float cycleDuration = 0.2f;
|
|
70
|
+
|
|
71
|
+
|
|
72
|
+
/// <summary>
|
|
73
|
+
///
|
|
74
|
+
/// </summary>
|
|
75
|
+
protected int bulletCount = 0;
|
|
76
|
+
|
|
77
|
+
/// <summary>
|
|
78
|
+
///
|
|
79
|
+
/// </summary>
|
|
80
|
+
protected bool moveForwardOnFinal = false;
|
|
81
|
+
|
|
82
|
+
/// <summary>
|
|
83
|
+
///
|
|
84
|
+
/// </summary>
|
|
85
|
+
protected TrackPathCalculator pathCalculator;
|
|
86
|
+
|
|
87
|
+
/// <summary>
|
|
88
|
+
///
|
|
89
|
+
/// </summary>
|
|
90
|
+
protected readonly Dictionary<Transform, CyclePosition> pairs = new();
|
|
91
|
+
|
|
92
|
+
|
|
93
|
+
protected virtual void Awake() => pathCalculator = new TrackPathCalculator(positions, firstVisible, notVisible);
|
|
94
|
+
|
|
95
|
+
|
|
96
|
+
/// <summary>
|
|
97
|
+
///
|
|
98
|
+
/// </summary>
|
|
99
|
+
/// <param name="transform"></param>
|
|
100
|
+
/// <remarks></remarks>
|
|
101
|
+
public virtual void OnTransformSpawned(Transform transform)
|
|
102
|
+
{
|
|
103
|
+
MoveAll(true, true);
|
|
104
|
+
|
|
105
|
+
Register(transform);
|
|
106
|
+
|
|
107
|
+
MoveToFirstPosition(transform, true);
|
|
108
|
+
|
|
109
|
+
Show();
|
|
110
|
+
|
|
111
|
+
if (MoveForwardOnFinal())
|
|
112
|
+
MoveAll(true, true);
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
/// <summary>
|
|
116
|
+
///
|
|
117
|
+
/// </summary>
|
|
118
|
+
/// <returns></returns>
|
|
119
|
+
protected virtual bool MoveForwardOnFinal() => moveForwardOnFinal && pairs.Count == bulletCount;
|
|
120
|
+
|
|
121
|
+
|
|
122
|
+
/// <inheritdoc/>
|
|
123
|
+
public virtual void OnSentBullets(List<TruthBullet> bullets)
|
|
124
|
+
{
|
|
125
|
+
bulletCount = bullets.Count;
|
|
126
|
+
|
|
127
|
+
pathCalculator.InitializeVisibility(bulletCount, maxVisible);
|
|
128
|
+
|
|
129
|
+
if (pairs.Count > 0)
|
|
130
|
+
moveForwardOnFinal = true;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
|
|
134
|
+
/// <inheritdoc/>
|
|
135
|
+
public virtual void OnBulletCycled(bool isUp) => MoveAll(!isUp);
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
/// <inheritdoc/>
|
|
139
|
+
public virtual void MoveAll(bool forward, bool immediate = false)
|
|
140
|
+
{
|
|
141
|
+
foreach (Transform transform in pairs.Keys.ToList())
|
|
142
|
+
MoveTransform(transform, forward, immediate ? 0f : cycleDuration);
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/// <summary>
|
|
146
|
+
///
|
|
147
|
+
/// </summary>
|
|
148
|
+
/// <param name="transform"></param>
|
|
149
|
+
/// <param name="forward"></param>
|
|
150
|
+
/// <param name="duration"></param>
|
|
151
|
+
protected virtual void MoveTransform(Transform transform, bool forward, float duration)
|
|
152
|
+
{
|
|
153
|
+
#if DOTWEEN
|
|
154
|
+
transform.DOKill();
|
|
155
|
+
#endif
|
|
156
|
+
Register(transform);
|
|
157
|
+
|
|
158
|
+
CyclePosition currentPos = pairs[transform];
|
|
159
|
+
|
|
160
|
+
var (path, nextPosition) = pathCalculator.CalculateCyclePath(currentPos, forward, pairs.Count);
|
|
161
|
+
|
|
162
|
+
if (duration <= 0f)
|
|
163
|
+
transform.position = path.Last();
|
|
164
|
+
else
|
|
165
|
+
#if DOTWEEN
|
|
166
|
+
transform.DOPath(path, duration);
|
|
167
|
+
#else
|
|
168
|
+
transform.position = pairs[transform].GetSubPositions()[0];
|
|
169
|
+
#endif
|
|
170
|
+
|
|
171
|
+
pairs[transform] = nextPosition;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
/// <inheritdoc/>
|
|
176
|
+
public virtual float MoveToFirstPosition(Transform transform, bool immediate = false)
|
|
177
|
+
{
|
|
178
|
+
if (positions.Count == 0 || positions[0] == null)
|
|
179
|
+
return 0;
|
|
180
|
+
|
|
181
|
+
float duration = immediate ? 0f : toFirstDuration;
|
|
182
|
+
|
|
183
|
+
Vector3 targetPos = positions[0].transform.position;
|
|
184
|
+
#if DOTWEEN
|
|
185
|
+
transform.DOKill();
|
|
186
|
+
#endif
|
|
187
|
+
if (immediate)
|
|
188
|
+
{
|
|
189
|
+
transform.position = targetPos;
|
|
190
|
+
|
|
191
|
+
Register(transform);
|
|
192
|
+
}
|
|
193
|
+
else
|
|
194
|
+
#if DOTWEEN
|
|
195
|
+
transform.DOMove(targetPos, duration)
|
|
196
|
+
.OnComplete(() => Register(transform));
|
|
197
|
+
#else
|
|
198
|
+
transform.Translate(targetPos);
|
|
199
|
+
#endif
|
|
200
|
+
return duration;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
/// <summary>
|
|
204
|
+
///
|
|
205
|
+
/// </summary>
|
|
206
|
+
/// <param name="transform"></param>
|
|
207
|
+
protected virtual void Register(Transform transform)
|
|
208
|
+
{
|
|
209
|
+
if (!pairs.ContainsKey(transform) && positions.Count > 0 && positions[0] != null)
|
|
210
|
+
pairs.Add(transform, positions[0]);
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
/// <inheritdoc/>
|
|
214
|
+
public virtual void ClearTrack() => pairs.Clear();
|
|
215
|
+
|
|
216
|
+
|
|
217
|
+
/// <inheritdoc/>
|
|
218
|
+
protected override void ShowUI()
|
|
219
|
+
{
|
|
220
|
+
foreach (var pair in pairs)
|
|
221
|
+
{
|
|
222
|
+
#if DOTWEEN
|
|
223
|
+
pair.Key.DOKill();
|
|
224
|
+
|
|
225
|
+
pair.Key.DOMove(pair.Value.transform.position, toPositionDuration);
|
|
226
|
+
#endif
|
|
227
|
+
}
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
/// <inheritdoc/>
|
|
231
|
+
protected override void HideUI()
|
|
232
|
+
{
|
|
233
|
+
foreach (var pair in pairs)
|
|
234
|
+
{
|
|
235
|
+
#if DOTWEEN
|
|
236
|
+
pair.Key.DOKill();
|
|
237
|
+
#endif
|
|
238
|
+
if (pathCalculator.InVisibleRange(pair.Value))
|
|
239
|
+
continue;
|
|
240
|
+
|
|
241
|
+
MoveToFirstPosition(pair.Key);
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
|
|
245
|
+
/// <inheritdoc/>
|
|
246
|
+
protected override IEnumerator WaitForUIToComplete()
|
|
247
|
+
{
|
|
248
|
+
#if DOTWEEN
|
|
249
|
+
if (pairs.Keys.Count > 0)
|
|
250
|
+
yield return new WaitUntil(() => !DOTween.IsTweening(pairs.Keys.First()));
|
|
251
|
+
#endif
|
|
252
|
+
yield return null;
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
protected virtual void OnDrawGizmos()
|
|
257
|
+
{
|
|
258
|
+
Gizmos.color = Color.green;
|
|
259
|
+
|
|
260
|
+
for (int i = 0; i < positions.Count; i++)
|
|
261
|
+
{
|
|
262
|
+
int endPositionIndex = i != positions.Count - 1 ? i + 1 : 0;
|
|
263
|
+
|
|
264
|
+
Gizmos.DrawLine(positions[i].GetSubPositions()[^1], positions[endPositionIndex].transform.position);
|
|
265
|
+
}
|
|
266
|
+
}
|
|
267
|
+
}
|
|
268
268
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: f12484464535b9e42b89d04db7cc55f5
|
|
3
|
-
MonoImporter:
|
|
4
|
-
externalObjects: {}
|
|
5
|
-
serializedVersion: 2
|
|
6
|
-
defaultReferences: []
|
|
7
|
-
executionOrder: 0
|
|
8
|
-
icon: {instanceID: 0}
|
|
9
|
-
userData:
|
|
10
|
-
assetBundleName:
|
|
11
|
-
assetBundleVariant:
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: f12484464535b9e42b89d04db7cc55f5
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|
package/Cycling/CycleUIBullet.cs
CHANGED
|
@@ -1,47 +1,47 @@
|
|
|
1
|
-
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
-
|
|
3
|
-
namespace DREditor.Minigames.Debates.Cycling
|
|
4
|
-
{
|
|
5
|
-
/// <summary>
|
|
6
|
-
///
|
|
7
|
-
/// </summary>
|
|
8
|
-
[ClassHeader(nameof(CycleUIBulletBase) +
|
|
9
|
-
"\n\n")]
|
|
10
|
-
public class CycleUIBullet : CycleUIBulletBase
|
|
11
|
-
{
|
|
12
|
-
/// <summary>
|
|
13
|
-
///
|
|
14
|
-
/// </summary>
|
|
15
|
-
protected ICycleUIStateComponent[] stateComponents;
|
|
16
|
-
|
|
17
|
-
/// <summary>
|
|
18
|
-
///
|
|
19
|
-
/// </summary>
|
|
20
|
-
protected ICycleUITextComponent[] textComponents;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
protected virtual void Awake()
|
|
24
|
-
{
|
|
25
|
-
stateComponents = GetComponents<ICycleUIStateComponent>();
|
|
26
|
-
|
|
27
|
-
textComponents = GetComponents<ICycleUITextComponent>();
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
/// <inheritdoc/>
|
|
32
|
-
public override void UpdateBulletText(string title)
|
|
33
|
-
{
|
|
34
|
-
if (textComponents != null)
|
|
35
|
-
foreach (var item in textComponents)
|
|
36
|
-
item?.UpdateBulletText(title);
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
/// <inheritdoc/>
|
|
40
|
-
public override void DisplayBulletActive(bool isActive)
|
|
41
|
-
{
|
|
42
|
-
if (stateComponents != null)
|
|
43
|
-
foreach (var item in stateComponents)
|
|
44
|
-
item?.DisplayBulletActive(isActive);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
1
|
+
//Author: Benjamin "Sweden" Jillson : Discord: sweden_gaming For Project Eden's Garden
|
|
2
|
+
|
|
3
|
+
namespace DREditor.Minigames.Debates.Cycling
|
|
4
|
+
{
|
|
5
|
+
/// <summary>
|
|
6
|
+
///
|
|
7
|
+
/// </summary>
|
|
8
|
+
[ClassHeader(nameof(CycleUIBulletBase) +
|
|
9
|
+
"\n\n")]
|
|
10
|
+
public class CycleUIBullet : CycleUIBulletBase
|
|
11
|
+
{
|
|
12
|
+
/// <summary>
|
|
13
|
+
///
|
|
14
|
+
/// </summary>
|
|
15
|
+
protected ICycleUIStateComponent[] stateComponents;
|
|
16
|
+
|
|
17
|
+
/// <summary>
|
|
18
|
+
///
|
|
19
|
+
/// </summary>
|
|
20
|
+
protected ICycleUITextComponent[] textComponents;
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
protected virtual void Awake()
|
|
24
|
+
{
|
|
25
|
+
stateComponents = GetComponents<ICycleUIStateComponent>();
|
|
26
|
+
|
|
27
|
+
textComponents = GetComponents<ICycleUITextComponent>();
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
|
|
31
|
+
/// <inheritdoc/>
|
|
32
|
+
public override void UpdateBulletText(string title)
|
|
33
|
+
{
|
|
34
|
+
if (textComponents != null)
|
|
35
|
+
foreach (var item in textComponents)
|
|
36
|
+
item?.UpdateBulletText(title);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
/// <inheritdoc/>
|
|
40
|
+
public override void DisplayBulletActive(bool isActive)
|
|
41
|
+
{
|
|
42
|
+
if (stateComponents != null)
|
|
43
|
+
foreach (var item in stateComponents)
|
|
44
|
+
item?.DisplayBulletActive(isActive);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
47
|
}
|
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
fileFormatVersion: 2
|
|
2
|
-
guid: 88e2e433f47000141834dd3ae1fe1593
|
|
3
|
-
MonoImporter:
|
|
4
|
-
externalObjects: {}
|
|
5
|
-
serializedVersion: 2
|
|
6
|
-
defaultReferences: []
|
|
7
|
-
executionOrder: 0
|
|
8
|
-
icon: {instanceID: 0}
|
|
9
|
-
userData:
|
|
10
|
-
assetBundleName:
|
|
11
|
-
assetBundleVariant:
|
|
1
|
+
fileFormatVersion: 2
|
|
2
|
+
guid: 88e2e433f47000141834dd3ae1fe1593
|
|
3
|
+
MonoImporter:
|
|
4
|
+
externalObjects: {}
|
|
5
|
+
serializedVersion: 2
|
|
6
|
+
defaultReferences: []
|
|
7
|
+
executionOrder: 0
|
|
8
|
+
icon: {instanceID: 0}
|
|
9
|
+
userData:
|
|
10
|
+
assetBundleName:
|
|
11
|
+
assetBundleVariant:
|