├── .gitignore ├── .vsconfig ├── Assets ├── Animations.meta ├── Animations │ ├── Bunny.meta │ ├── Bunny │ │ ├── Attack.anim │ │ ├── Attack.anim.meta │ │ ├── Die.anim │ │ ├── Die.anim.meta │ │ ├── Idle.anim │ │ ├── Idle.anim.meta │ │ ├── Jump.anim │ │ ├── Jump.anim.meta │ │ ├── Move.anim │ │ └── Move.anim.meta │ ├── Kitty.meta │ └── Kitty │ │ ├── Die.anim │ │ ├── Die.anim.meta │ │ ├── Idle.anim │ │ ├── Idle.anim.meta │ │ ├── Jump.anim │ │ ├── Jump.anim.meta │ │ ├── Move.anim │ │ └── Move.anim.meta ├── Animator.meta ├── Animator │ ├── Bunny.overrideController │ ├── Bunny.overrideController.meta │ ├── Character.controller │ ├── Character.controller.meta │ ├── Kitty.overrideController │ └── Kitty.overrideController.meta ├── Gizmos.meta ├── Gizmos │ ├── Cinemachine.meta │ └── Cinemachine │ │ ├── cm_logo_lg.png │ │ └── cm_logo_lg.png.meta ├── Infrastructure.meta ├── Infrastructure │ ├── Extensions.meta │ ├── Extensions │ │ ├── Rigidbody2DExtension.cs │ │ ├── Rigidbody2DExtension.cs.meta │ │ ├── SpriteRendererExtension.cs │ │ ├── SpriteRendererExtension.cs.meta │ │ ├── TransformExtension.cs │ │ └── TransformExtension.cs.meta │ ├── ObjectPooling.meta │ ├── ObjectPooling │ │ ├── IPooledObject.cs │ │ ├── IPooledObject.cs.meta │ │ ├── PooledObjectStats.cs │ │ ├── PooledObjectStats.cs.meta │ │ ├── PoolingSystem.cs │ │ └── PoolingSystem.cs.meta │ ├── ResourceFactory.meta │ ├── ResourceFactory │ │ ├── IResourceFactory.cs │ │ ├── IResourceFactory.cs.meta │ │ ├── VContainerResourceFactory.cs │ │ └── VContainerResourceFactory.cs.meta │ ├── StateMachine.meta │ ├── StateMachine │ │ ├── BaseState.cs │ │ ├── BaseState.cs.meta │ │ ├── BaseStateMachineContext.cs │ │ ├── BaseStateMachineContext.cs.meta │ │ ├── IState.cs │ │ ├── IState.cs.meta │ │ ├── IStateMachineContext.cs │ │ ├── IStateMachineContext.cs.meta │ │ ├── StateMachine.cs │ │ └── StateMachine.cs.meta │ ├── T4.meta │ └── T4 │ │ ├── TagsGenerator.cs │ │ ├── TagsGenerator.cs.meta │ │ ├── TagsGeneratorInterface.cs │ │ └── TagsGeneratorInterface.cs.meta ├── Materials.meta ├── Materials │ ├── NoFriction.physicsMaterial2D │ └── NoFriction.physicsMaterial2D.meta ├── Palettes.meta ├── Palettes │ ├── Slope.asset │ ├── Slope.asset.meta │ ├── Slope2.asset │ ├── Slope2.asset.meta │ ├── Slope3.asset │ ├── Slope3.asset.meta │ ├── Square.asset │ └── Square.asset.meta ├── Plugins.meta ├── Plugins │ ├── ScriptableObjectDropdown.meta │ └── ScriptableObjectDropdown │ │ ├── Editor.meta │ │ ├── Editor │ │ ├── ScriptableObjectDropdownDrawer.cs │ │ └── ScriptableObjectDropdownDrawer.cs.meta │ │ ├── Extention.meta │ │ ├── Extention │ │ ├── TypeExtension.cs │ │ └── TypeExtension.cs.meta │ │ ├── ScriptableObjectDropdownAttribute.cs │ │ ├── ScriptableObjectDropdownAttribute.cs.meta │ │ ├── ScriptableObjectReference.cs │ │ └── ScriptableObjectReference.cs.meta ├── Prefabs.meta ├── Prefabs │ ├── Characters.meta │ ├── Characters │ │ ├── Bunny.prefab │ │ ├── Bunny.prefab.meta │ │ ├── Character.prefab │ │ ├── Character.prefab.meta │ │ ├── Kitty.prefab │ │ └── Kitty.prefab.meta │ ├── General.meta │ ├── General │ │ ├── Camera.prefab │ │ ├── Camera.prefab.meta │ │ ├── PlayersManager.prefab │ │ ├── PlayersManager.prefab.meta │ │ ├── Services.prefab │ │ └── Services.prefab.meta │ ├── Player.meta │ ├── Player │ │ ├── Player.prefab │ │ └── Player.prefab.meta │ ├── Tools.meta │ ├── Tools │ │ ├── KittyShuriken.prefab │ │ ├── KittyShuriken.prefab.meta │ │ ├── Shuriken.prefab │ │ └── Shuriken.prefab.meta │ ├── UI.meta │ ├── UI │ │ ├── AttackCooldown.meta │ │ ├── AttackCooldown │ │ │ ├── AttackTimer.prefab │ │ │ ├── AttackTimer.prefab.meta │ │ │ ├── ComplexAttackTimer.prefab │ │ │ ├── ComplexAttackTimer.prefab.meta │ │ │ ├── NormalAttackTimer.prefab │ │ │ ├── NormalAttackTimer.prefab.meta │ │ │ ├── PowerupTimer.prefab │ │ │ └── PowerupTimer.prefab.meta │ │ ├── Canvas.prefab │ │ ├── Canvas.prefab.meta │ │ ├── GameOver.prefab │ │ ├── GameOver.prefab.meta │ │ ├── PlayerStats.prefab │ │ └── PlayerStats.prefab.meta │ ├── World.meta │ └── World │ │ ├── CharactersTrigger.prefab │ │ └── CharactersTrigger.prefab.meta ├── Scenes.meta ├── Scenes │ ├── SampleScene.unity │ └── SampleScene.unity.meta ├── ScriptableObjects.meta ├── ScriptableObjects │ ├── AttackBehaviors.meta │ ├── AttackBehaviors │ │ ├── ComplexAttackBehaviors.meta │ │ ├── ComplexAttackBehaviors │ │ │ ├── BunnyForwardMeleeAttackBehavior.asset │ │ │ ├── BunnyForwardMeleeAttackBehavior.asset.meta │ │ │ ├── KittyThreeDirectionThrowingBehavior.asset │ │ │ └── KittyThreeDirectionThrowingBehavior.asset.meta │ │ ├── NormalAttackBehaviors.meta │ │ ├── NormalAttackBehaviors │ │ │ ├── BunnyMeleeAttackBehavior.asset │ │ │ ├── BunnyMeleeAttackBehavior.asset.meta │ │ │ ├── KittyStraightLineThrowingBehavior.asset │ │ │ └── KittyStraightLineThrowingBehavior.asset.meta │ │ ├── PowerupAttackBehaviors.meta │ │ └── PowerupAttackBehaviors │ │ │ ├── BunnyFlyOverAttackBehavior.asset │ │ │ └── BunnyFlyOverAttackBehavior.asset.meta │ ├── Characters.meta │ ├── Characters │ │ ├── Bunny.asset │ │ ├── Bunny.asset.meta │ │ ├── Kitty.asset │ │ └── Kitty.asset.meta │ ├── PooledObjects.meta │ ├── PooledObjects │ │ ├── KittyShuriken.asset │ │ └── KittyShuriken.asset.meta │ ├── Powerups.meta │ ├── Powerups │ │ ├── BunnyFlyOverPowerup.asset │ │ ├── BunnyFlyOverPowerup.asset.meta │ │ ├── KittyUnlimitedThrowingObjectPowerup.asset │ │ └── KittyUnlimitedThrowingObjectPowerup.asset.meta │ ├── VContainerSettings.asset │ ├── VContainerSettings.asset.meta │ ├── Variables.meta │ └── Variables │ │ ├── KittyShurikenCounter.asset │ │ └── KittyShurikenCounter.asset.meta ├── Scripts.meta ├── Scripts │ ├── Camera.meta │ ├── Camera │ │ ├── CameraManager.cs │ │ ├── CameraManager.cs.meta │ │ ├── MainCameraController.cs │ │ ├── MainCameraController.cs.meta │ │ ├── TargetGroupController.cs │ │ └── TargetGroupController.cs.meta │ ├── Character.meta │ ├── Character │ │ ├── Behaviors.meta │ │ ├── Behaviors │ │ │ ├── CharacterBehaviorContext.cs │ │ │ ├── CharacterBehaviorContext.cs.meta │ │ │ ├── ComplexBehaviors.meta │ │ │ ├── ComplexBehaviors │ │ │ │ ├── ForwardMeleeAttackBehavior.cs │ │ │ │ ├── ForwardMeleeAttackBehavior.cs.meta │ │ │ │ ├── IComplextAttackBehavior.cs │ │ │ │ ├── IComplextAttackBehavior.cs.meta │ │ │ │ ├── ThreeDirectionThrowingAttackBehavior.cs │ │ │ │ └── ThreeDirectionThrowingAttackBehavior.cs.meta │ │ │ ├── IAttackBehavior.cs │ │ │ ├── IAttackBehavior.cs.meta │ │ │ ├── IBehavior.cs │ │ │ ├── IBehavior.cs.meta │ │ │ ├── NormalBehaviors.meta │ │ │ ├── NormalBehaviors │ │ │ │ ├── INormalAttackBehavior.cs │ │ │ │ ├── INormalAttackBehavior.cs.meta │ │ │ │ ├── MeleeAttackBehavior.cs │ │ │ │ ├── MeleeAttackBehavior.cs.meta │ │ │ │ ├── StraightLineThrowingAttackBehavior.cs │ │ │ │ └── StraightLineThrowingAttackBehavior.cs.meta │ │ │ ├── PowerupBehaviors.meta │ │ │ ├── PowerupBehaviors │ │ │ │ ├── FlyOverAttackBehavior.cs │ │ │ │ ├── FlyOverAttackBehavior.cs.meta │ │ │ │ ├── IPowerupAttackBehavior.cs │ │ │ │ └── IPowerupAttackBehavior.cs.meta │ │ │ ├── ThrowingObjectBehavior.cs │ │ │ └── ThrowingObjectBehavior.cs.meta │ │ ├── CharacterAnimatorController.cs │ │ ├── CharacterAnimatorController.cs.meta │ │ ├── CharacterContext.cs │ │ ├── CharacterContext.cs.meta │ │ ├── CharacterController.cs │ │ ├── CharacterController.cs.meta │ │ ├── CharacterHurtBoxHandler.cs │ │ ├── CharacterHurtBoxHandler.cs.meta │ │ ├── CharacterLifetimeScope.cs │ │ ├── CharacterLifetimeScope.cs.meta │ │ ├── CharacterLocomotionHandler.cs │ │ ├── CharacterLocomotionHandler.cs.meta │ │ ├── CharacterPivot.cs │ │ ├── CharacterPivot.cs.meta │ │ ├── CharacterStats.cs │ │ ├── CharacterStats.cs.meta │ │ ├── Contexts.meta │ │ ├── Contexts │ │ │ ├── CharacterCombatStateMachineContext.cs │ │ │ ├── CharacterCombatStateMachineContext.cs.meta │ │ │ ├── CharacterMainStateMachineContext.cs │ │ │ ├── CharacterMainStateMachineContext.cs.meta │ │ │ ├── CharacterSecondaryMovementStateMachineContext.cs │ │ │ └── CharacterSecondaryMovementStateMachineContext.cs.meta │ │ ├── Events.meta │ │ ├── Events │ │ │ ├── OnAttackEnded.cs │ │ │ ├── OnAttackEnded.cs.meta │ │ │ ├── OnAttackStarted.cs │ │ │ ├── OnAttackStarted.cs.meta │ │ │ ├── OnChangeMoveSpeedRequested.cs │ │ │ ├── OnChangeMoveSpeedRequested.cs.meta │ │ │ ├── OnDied.cs │ │ │ ├── OnDied.cs.meta │ │ │ ├── OnEntered.cs │ │ │ ├── OnEntered.cs.meta │ │ │ ├── OnFlyingToggled.cs │ │ │ ├── OnFlyingToggled.cs.meta │ │ │ ├── OnGrounded.cs │ │ │ ├── OnGrounded.cs.meta │ │ │ ├── OnPowerupEnded.cs │ │ │ ├── OnPowerupEnded.cs.meta │ │ │ ├── OnPowerupStarted.cs │ │ │ └── OnPowerupStarted.cs.meta │ │ ├── Powerups.meta │ │ ├── Powerups │ │ │ ├── CharacterPowerupContext.cs │ │ │ ├── CharacterPowerupContext.cs.meta │ │ │ ├── FlyOverPowerup.cs │ │ │ ├── FlyOverPowerup.cs.meta │ │ │ ├── IPowerup.cs │ │ │ ├── IPowerup.cs.meta │ │ │ ├── UnlimitedThrowingObjectPowerup.cs │ │ │ └── UnlimitedThrowingObjectPowerup.cs.meta │ │ ├── States.meta │ │ ├── States │ │ │ ├── Combat.meta │ │ │ ├── Combat │ │ │ │ ├── Attack.cs │ │ │ │ ├── Attack.cs.meta │ │ │ │ ├── None.cs │ │ │ │ └── None.cs.meta │ │ │ ├── Main.meta │ │ │ ├── Main │ │ │ │ ├── Die.cs │ │ │ │ ├── Die.cs.meta │ │ │ │ ├── IMainState.cs │ │ │ │ ├── IMainState.cs.meta │ │ │ │ ├── Idle.cs │ │ │ │ ├── Idle.cs.meta │ │ │ │ ├── Move.cs │ │ │ │ └── Move.cs.meta │ │ │ ├── SecondaryMovement.meta │ │ │ └── SecondaryMovement │ │ │ │ ├── Fall.cs │ │ │ │ ├── Fall.cs.meta │ │ │ │ ├── Fly.cs │ │ │ │ ├── Fly.cs.meta │ │ │ │ ├── Jump.cs │ │ │ │ ├── Jump.cs.meta │ │ │ │ ├── Land.cs │ │ │ │ ├── Land.cs.meta │ │ │ │ ├── None.cs │ │ │ │ └── None.cs.meta │ │ ├── SurfaceCheck.cs │ │ ├── SurfaceCheck.cs.meta │ │ ├── SurfaceEnterChecker.cs │ │ └── SurfaceEnterChecker.cs.meta │ ├── General.meta │ ├── General │ │ ├── ServicesLifetimeScope.cs │ │ ├── ServicesLifetimeScope.cs.meta │ │ ├── Variables.meta │ │ └── Variables │ │ │ ├── IntVariable.cs │ │ │ ├── IntVariable.cs.meta │ │ │ ├── ShareableVariable.cs │ │ │ └── ShareableVariable.cs.meta │ ├── Input.meta │ ├── Input │ │ ├── InputManager.cs │ │ ├── InputManager.cs.meta │ │ ├── UnityInputManager.cs │ │ └── UnityInputManager.cs.meta │ ├── Player.meta │ ├── Player │ │ ├── CharactersSwitchingHandler.cs │ │ ├── CharactersSwitchingHandler.cs.meta │ │ ├── Events.meta │ │ ├── Events │ │ │ ├── OnAttackCooldownStarted.cs │ │ │ ├── OnAttackCooldownStarted.cs.meta │ │ │ ├── OnCharactersConfigured.cs │ │ │ ├── OnCharactersConfigured.cs.meta │ │ │ ├── OnGameOver.cs │ │ │ ├── OnGameOver.cs.meta │ │ │ ├── OnPowerupTimerStarted.cs │ │ │ └── OnPowerupTimerStarted.cs.meta │ │ ├── PlayerContext.cs │ │ ├── PlayerContext.cs.meta │ │ ├── PlayerController.cs │ │ ├── PlayerController.cs.meta │ │ ├── PlayerLifetimeScope.cs │ │ ├── PlayerLifetimeScope.cs.meta │ │ ├── PlayersContext.cs │ │ ├── PlayersContext.cs.meta │ │ ├── PlayersLifetimeScope.cs │ │ ├── PlayersLifetimeScope.cs.meta │ │ ├── PlayersManager.cs │ │ └── PlayersManager.cs.meta │ ├── Services.meta │ ├── Services │ │ ├── HitboxObjectsOwnershipService.cs │ │ ├── HitboxObjectsOwnershipService.cs.meta │ │ ├── IOwnershipService.cs │ │ ├── IOwnershipService.cs.meta │ │ ├── Tags.cs │ │ └── Tags.cs.meta │ ├── Tools.meta │ ├── Tools │ │ ├── IThrowableObject.cs │ │ ├── IThrowableObject.cs.meta │ │ ├── ITool.cs │ │ ├── ITool.cs.meta │ │ ├── ShurikenController.cs │ │ ├── ShurikenController.cs.meta │ │ ├── SwordController.cs │ │ └── SwordController.cs.meta │ ├── UI.meta │ └── UI │ │ ├── UIGameOverPanel.cs │ │ ├── UIGameOverPanel.cs.meta │ │ ├── UILifetimeScope.cs │ │ ├── UILifetimeScope.cs.meta │ │ ├── UIPlayerStats.cs │ │ ├── UIPlayerStats.cs.meta │ │ ├── UIVisibilityController.cs │ │ └── UIVisibilityController.cs.meta ├── Sprites.meta ├── Sprites │ ├── Atlast.spriteatlas │ ├── Atlast.spriteatlas.meta │ ├── Characters.meta │ ├── Characters │ │ ├── Bunny.meta │ │ ├── Bunny │ │ │ ├── Attack.png │ │ │ ├── Attack.png.meta │ │ │ ├── Die.png │ │ │ ├── Die.png.meta │ │ │ ├── Jump.png │ │ │ ├── Jump.png.meta │ │ │ ├── Stand.png │ │ │ └── Stand.png.meta │ │ ├── Kitty.meta │ │ └── Kitty │ │ │ ├── Die.png │ │ │ ├── Die.png.meta │ │ │ ├── Jump.png │ │ │ ├── Jump.png.meta │ │ │ ├── Stand.png │ │ │ └── Stand.png.meta │ ├── Player1AvatarRenderTexture.asset │ ├── Player1AvatarRenderTexture.asset.meta │ ├── Player2AvatarRenderTexture.asset │ ├── Player2AvatarRenderTexture.asset.meta │ ├── Tools.meta │ ├── Tools │ │ ├── IllusionShuriken.png │ │ ├── IllusionShuriken.png.meta │ │ ├── Shuriken.png │ │ ├── Shuriken.png.meta │ │ ├── StuckShuriken.png │ │ └── StuckShuriken.png.meta │ ├── World.meta │ └── World │ │ ├── Slope.png │ │ ├── Slope.png.meta │ │ ├── Slope2.png │ │ ├── Slope2.png.meta │ │ ├── Slope3.png │ │ ├── Slope3.png.meta │ │ ├── Square.png │ │ └── Square.png.meta ├── TextMesh Pro.meta ├── TextMesh Pro │ ├── Documentation.meta │ ├── Documentation │ │ ├── TextMesh Pro User Guide 2016.pdf │ │ └── TextMesh Pro User Guide 2016.pdf.meta │ ├── Fonts.meta │ ├── Fonts │ │ ├── LiberationSans - OFL.txt │ │ ├── LiberationSans - OFL.txt.meta │ │ ├── LiberationSans.ttf │ │ └── LiberationSans.ttf.meta │ ├── Resources.meta │ ├── Resources │ │ ├── Fonts & Materials.meta │ │ ├── Fonts & Materials │ │ │ ├── LiberationSans SDF - Drop Shadow.mat │ │ │ ├── LiberationSans SDF - Drop Shadow.mat.meta │ │ │ ├── LiberationSans SDF - Fallback.asset │ │ │ ├── LiberationSans SDF - Fallback.asset.meta │ │ │ ├── LiberationSans SDF - Outline.mat │ │ │ ├── LiberationSans SDF - Outline.mat.meta │ │ │ ├── LiberationSans SDF.asset │ │ │ └── LiberationSans SDF.asset.meta │ │ ├── LineBreaking Following Characters.txt │ │ ├── LineBreaking Following Characters.txt.meta │ │ ├── LineBreaking Leading Characters.txt │ │ ├── LineBreaking Leading Characters.txt.meta │ │ ├── Shaders.meta │ │ ├── Shaders │ │ │ ├── TMP_Bitmap-Custom-Atlas.shader │ │ │ ├── TMP_Bitmap-Custom-Atlas.shader.meta │ │ │ ├── TMP_Bitmap-Mobile.shader │ │ │ ├── TMP_Bitmap-Mobile.shader.meta │ │ │ ├── TMP_Bitmap.shader │ │ │ ├── TMP_Bitmap.shader.meta │ │ │ ├── TMP_SDF Overlay.shader │ │ │ ├── TMP_SDF Overlay.shader.meta │ │ │ ├── TMP_SDF-Mobile Masking.shader │ │ │ ├── TMP_SDF-Mobile Masking.shader.meta │ │ │ ├── TMP_SDF-Mobile Overlay.shader │ │ │ ├── TMP_SDF-Mobile Overlay.shader.meta │ │ │ ├── TMP_SDF-Mobile.shader │ │ │ ├── TMP_SDF-Mobile.shader.meta │ │ │ ├── TMP_SDF-Surface-Mobile.shader │ │ │ ├── TMP_SDF-Surface-Mobile.shader.meta │ │ │ ├── TMP_SDF-Surface.shader │ │ │ ├── TMP_SDF-Surface.shader.meta │ │ │ ├── TMP_SDF.shader │ │ │ ├── TMP_SDF.shader.meta │ │ │ ├── TMP_Sprite.shader │ │ │ ├── TMP_Sprite.shader.meta │ │ │ ├── TMPro.cginc │ │ │ ├── TMPro.cginc.meta │ │ │ ├── TMPro_Properties.cginc │ │ │ ├── TMPro_Properties.cginc.meta │ │ │ ├── TMPro_Surface.cginc │ │ │ └── TMPro_Surface.cginc.meta │ │ ├── Sprite Assets.meta │ │ ├── Sprite Assets │ │ │ ├── EmojiOne.asset │ │ │ └── EmojiOne.asset.meta │ │ ├── Style Sheets.meta │ │ ├── Style Sheets │ │ │ ├── Default Style Sheet.asset │ │ │ └── Default Style Sheet.asset.meta │ │ ├── TMP Settings.asset │ │ └── TMP Settings.asset.meta │ ├── Sprites.meta │ └── Sprites │ │ ├── EmojiOne Attribution.txt │ │ ├── EmojiOne Attribution.txt.meta │ │ ├── EmojiOne.json │ │ ├── EmojiOne.json.meta │ │ ├── EmojiOne.png │ │ └── EmojiOne.png.meta ├── Tiles.meta ├── Tiles │ ├── World.prefab │ └── World.prefab.meta ├── URP.meta └── URP │ ├── Lighting Settings.lighting │ ├── Lighting Settings.lighting.meta │ ├── URPAsset.asset │ ├── URPAsset.asset.meta │ ├── URPAsset_Renderer.asset │ ├── URPAsset_Renderer.asset.meta │ ├── UniversalRenderPipelineGlobalSettings.asset │ └── UniversalRenderPipelineGlobalSettings.asset.meta ├── Docs ├── CharacterStateMachine.pdf ├── CombatSystem.pdf ├── MessageBus.pdf ├── ObjectPoolingSystem.pdf └── StateMachine.pdf ├── Infrastructure └── T4 │ ├── TagsGenerator.cs │ └── TagsGenerator.tt ├── LICENSE ├── Packages ├── manifest.json └── packages-lock.json ├── ProjectSettings ├── AudioManager.asset ├── ClusterInputManager.asset ├── DynamicsManager.asset ├── EditorBuildSettings.asset ├── EditorSettings.asset ├── GraphicsSettings.asset ├── InputManager.asset ├── MemorySettings.asset ├── NavMeshAreas.asset ├── NetworkManager.asset ├── PackageManagerSettings.asset ├── Physics2DSettings.asset ├── PresetManager.asset ├── ProjectSettings.asset ├── ProjectVersion.txt ├── QualitySettings.asset ├── SceneTemplateSettings.json ├── ShaderGraphSettings.asset ├── TagManager.asset ├── TimeManager.asset ├── URPProjectSettings.asset ├── UnityConnectSettings.asset ├── VFXManager.asset ├── VersionControlSettings.asset └── XRSettings.asset └── README.md /.gitignore: -------------------------------------------------------------------------------- 1 | # This .gitignore file should be placed at the root of your Unity project directory 2 | # 3 | # Get latest from https://github.com/github/gitignore/blob/main/Unity.gitignore 4 | # 5 | /[Ll]ibrary/ 6 | /[Tt]emp/ 7 | /[Oo]bj/ 8 | /[Bb]uild/ 9 | /[Bb]uilds/ 10 | /[Ll]ogs/ 11 | /[Uu]ser[Ss]ettings/ 12 | 13 | # MemoryCaptures can get excessive in size. 14 | # They also could contain extremely sensitive data 15 | /[Mm]emoryCaptures/ 16 | 17 | # Recordings can get excessive in size 18 | /[Rr]ecordings/ 19 | 20 | # Uncomment this line if you wish to ignore the asset store tools plugin 21 | # /[Aa]ssets/AssetStoreTools* 22 | 23 | # Autogenerated Jetbrains Rider plugin 24 | /[Aa]ssets/Plugins/Editor/JetBrains* 25 | 26 | # Visual Studio cache directory 27 | .vs/ 28 | 29 | # Gradle cache directory 30 | .gradle/ 31 | 32 | # Autogenerated VS/MD/Consulo solution and project files 33 | ExportedObj/ 34 | .consulo/ 35 | *.csproj 36 | *.csproj.meta 37 | *.unityproj 38 | *.sln 39 | *.suo 40 | *.tmp 41 | *.user 42 | *.userprefs 43 | *.pidb 44 | *.booproj 45 | *.svd 46 | *.pdb 47 | *.mdb 48 | *.opendb 49 | *.VC.db 50 | 51 | # Unity3D generated meta files 52 | *.pidb.meta 53 | *.pdb.meta 54 | *.mdb.meta 55 | 56 | # Unity3D generated file on crash reports 57 | sysinfo.txt 58 | 59 | # Builds 60 | *.apk 61 | *.aab 62 | *.unitypackage 63 | *.app 64 | 65 | # Crashlytics generated file 66 | crashlytics-build.properties 67 | 68 | # Packed Addressables 69 | /[Aa]ssets/[Aa]ddressable[Aa]ssets[Dd]ata/*/*.bin* 70 | 71 | # Temporary auto-generated Android Assets 72 | /[Aa]ssets/[Ss]treamingAssets/aa.meta 73 | /[Aa]ssets/[Ss]treamingAssets/aa/* -------------------------------------------------------------------------------- /.vsconfig: -------------------------------------------------------------------------------- 1 | { 2 | "version": "1.0", 3 | "components": [ 4 | "Microsoft.VisualStudio.Workload.ManagedGame" 5 | ] 6 | } 7 | -------------------------------------------------------------------------------- /Assets/Animations.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: df1e4d55ac4237f4b97438304117e78b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Animations/Bunny.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b0a8bdd0fb811634a97c54e4e89eeca9 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Animations/Bunny/Attack.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 15d83fcf5bc0b4a4a8d9fbe4b76d4231 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 7400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Animations/Bunny/Die.anim: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!74 &7400000 4 | AnimationClip: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: Die 9 | serializedVersion: 6 10 | m_Legacy: 0 11 | m_Compressed: 0 12 | m_UseHighQualityCurve: 1 13 | m_RotationCurves: [] 14 | m_CompressedRotationCurves: [] 15 | m_EulerCurves: [] 16 | m_PositionCurves: [] 17 | m_ScaleCurves: [] 18 | m_FloatCurves: [] 19 | m_PPtrCurves: 20 | - curve: 21 | - time: 0 22 | value: {fileID: 21300000, guid: 638d1867412f2a443a520c4cd9f5f3fe, type: 3} 23 | attribute: m_Sprite 24 | path: 25 | classID: 212 26 | script: {fileID: 0} 27 | m_SampleRate: 60 28 | m_WrapMode: 0 29 | m_Bounds: 30 | m_Center: {x: 0, y: 0, z: 0} 31 | m_Extent: {x: 0, y: 0, z: 0} 32 | m_ClipBindingConstant: 33 | genericBindings: 34 | - serializedVersion: 2 35 | path: 0 36 | attribute: 0 37 | script: {fileID: 0} 38 | typeID: 212 39 | customType: 23 40 | isPPtrCurve: 1 41 | pptrCurveMapping: 42 | - {fileID: 21300000, guid: 638d1867412f2a443a520c4cd9f5f3fe, type: 3} 43 | m_AnimationClipSettings: 44 | serializedVersion: 2 45 | m_AdditiveReferencePoseClip: {fileID: 0} 46 | m_AdditiveReferencePoseTime: 0 47 | m_StartTime: 0 48 | m_StopTime: 0.016666668 49 | m_OrientationOffsetY: 0 50 | m_Level: 0 51 | m_CycleOffset: 0 52 | m_HasAdditiveReferencePose: 0 53 | m_LoopTime: 1 54 | m_LoopBlend: 0 55 | m_LoopBlendOrientation: 0 56 | m_LoopBlendPositionY: 0 57 | m_LoopBlendPositionXZ: 0 58 | m_KeepOriginalOrientation: 0 59 | m_KeepOriginalPositionY: 1 60 | m_KeepOriginalPositionXZ: 0 61 | m_HeightFromFeet: 0 62 | m_Mirror: 0 63 | m_EditorCurves: [] 64 | m_EulerEditorCurves: [] 65 | m_HasGenericRootTransform: 0 66 | m_HasMotionFloatCurves: 0 67 | m_GenerateMotionCurves: 0 68 | m_Events: [] 69 | -------------------------------------------------------------------------------- /Assets/Animations/Bunny/Die.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5776fc16d68d30847beee63a2cbe51d9 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 7400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Animations/Bunny/Idle.anim: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!74 &7400000 4 | AnimationClip: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: Idle 9 | serializedVersion: 6 10 | m_Legacy: 0 11 | m_Compressed: 0 12 | m_UseHighQualityCurve: 1 13 | m_RotationCurves: [] 14 | m_CompressedRotationCurves: [] 15 | m_EulerCurves: [] 16 | m_PositionCurves: [] 17 | m_ScaleCurves: [] 18 | m_FloatCurves: [] 19 | m_PPtrCurves: 20 | - curve: 21 | - time: 0 22 | value: {fileID: 21300000, guid: 90e11f408500a8241a1e0f209bb0b2d1, type: 3} 23 | attribute: m_Sprite 24 | path: 25 | classID: 212 26 | script: {fileID: 0} 27 | m_SampleRate: 60 28 | m_WrapMode: 0 29 | m_Bounds: 30 | m_Center: {x: 0, y: 0, z: 0} 31 | m_Extent: {x: 0, y: 0, z: 0} 32 | m_ClipBindingConstant: 33 | genericBindings: 34 | - serializedVersion: 2 35 | path: 0 36 | attribute: 0 37 | script: {fileID: 0} 38 | typeID: 212 39 | customType: 23 40 | isPPtrCurve: 1 41 | pptrCurveMapping: 42 | - {fileID: 21300000, guid: 90e11f408500a8241a1e0f209bb0b2d1, type: 3} 43 | m_AnimationClipSettings: 44 | serializedVersion: 2 45 | m_AdditiveReferencePoseClip: {fileID: 0} 46 | m_AdditiveReferencePoseTime: 0 47 | m_StartTime: 0 48 | m_StopTime: 0.016666668 49 | m_OrientationOffsetY: 0 50 | m_Level: 0 51 | m_CycleOffset: 0 52 | m_HasAdditiveReferencePose: 0 53 | m_LoopTime: 1 54 | m_LoopBlend: 0 55 | m_LoopBlendOrientation: 0 56 | m_LoopBlendPositionY: 0 57 | m_LoopBlendPositionXZ: 0 58 | m_KeepOriginalOrientation: 0 59 | m_KeepOriginalPositionY: 1 60 | m_KeepOriginalPositionXZ: 0 61 | m_HeightFromFeet: 0 62 | m_Mirror: 0 63 | m_EditorCurves: [] 64 | m_EulerEditorCurves: [] 65 | m_HasGenericRootTransform: 0 66 | m_HasMotionFloatCurves: 0 67 | m_GenerateMotionCurves: 0 68 | m_Events: [] 69 | -------------------------------------------------------------------------------- /Assets/Animations/Bunny/Idle.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f802d0f8a7566f74c8649d415032765d 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 7400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Animations/Bunny/Jump.anim: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!74 &7400000 4 | AnimationClip: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: Jump 9 | serializedVersion: 6 10 | m_Legacy: 0 11 | m_Compressed: 0 12 | m_UseHighQualityCurve: 1 13 | m_RotationCurves: [] 14 | m_CompressedRotationCurves: [] 15 | m_EulerCurves: [] 16 | m_PositionCurves: [] 17 | m_ScaleCurves: [] 18 | m_FloatCurves: [] 19 | m_PPtrCurves: 20 | - curve: 21 | - time: 0 22 | value: {fileID: 21300000, guid: 809ceea70c526464f8651f61aacf550e, type: 3} 23 | attribute: m_Sprite 24 | path: 25 | classID: 212 26 | script: {fileID: 0} 27 | m_SampleRate: 60 28 | m_WrapMode: 0 29 | m_Bounds: 30 | m_Center: {x: 0, y: 0, z: 0} 31 | m_Extent: {x: 0, y: 0, z: 0} 32 | m_ClipBindingConstant: 33 | genericBindings: 34 | - serializedVersion: 2 35 | path: 0 36 | attribute: 0 37 | script: {fileID: 0} 38 | typeID: 212 39 | customType: 23 40 | isPPtrCurve: 1 41 | pptrCurveMapping: 42 | - {fileID: 21300000, guid: 809ceea70c526464f8651f61aacf550e, type: 3} 43 | m_AnimationClipSettings: 44 | serializedVersion: 2 45 | m_AdditiveReferencePoseClip: {fileID: 0} 46 | m_AdditiveReferencePoseTime: 0 47 | m_StartTime: 0 48 | m_StopTime: 0.016666668 49 | m_OrientationOffsetY: 0 50 | m_Level: 0 51 | m_CycleOffset: 0 52 | m_HasAdditiveReferencePose: 0 53 | m_LoopTime: 1 54 | m_LoopBlend: 0 55 | m_LoopBlendOrientation: 0 56 | m_LoopBlendPositionY: 0 57 | m_LoopBlendPositionXZ: 0 58 | m_KeepOriginalOrientation: 0 59 | m_KeepOriginalPositionY: 1 60 | m_KeepOriginalPositionXZ: 0 61 | m_HeightFromFeet: 0 62 | m_Mirror: 0 63 | m_EditorCurves: [] 64 | m_EulerEditorCurves: [] 65 | m_HasGenericRootTransform: 0 66 | m_HasMotionFloatCurves: 0 67 | m_GenerateMotionCurves: 0 68 | m_Events: [] 69 | -------------------------------------------------------------------------------- /Assets/Animations/Bunny/Jump.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 393e1af87be0f134386cef9f66b209c9 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 7400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Animations/Bunny/Move.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5a61b98932e4657448f27009b6c39ec7 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 7400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Animations/Kitty.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8164a96c92707204b8e151b38dab2b39 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Animations/Kitty/Die.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 55d18d6f192344e488bbab04e5021729 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 7400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Animations/Kitty/Idle.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c7c4795fc9c3ced47af1890bee783612 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 7400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Animations/Kitty/Jump.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fdfb9d7bd36b48642ac072a27ba25094 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 7400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Animations/Kitty/Move.anim.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 134147482c1e04644a3bd6856a0bd197 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 7400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Animator.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3cc96bef81f2cc44b8efdd81f42a14fd 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Animator/Bunny.overrideController: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!221 &22100000 4 | AnimatorOverrideController: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_Name: Bunny 10 | m_Controller: {fileID: 9100000, guid: 35a862e55eb35b5488b14578c8e11fda, type: 2} 11 | m_Clips: 12 | - m_OriginalClip: {fileID: 7400000, guid: 15d83fcf5bc0b4a4a8d9fbe4b76d4231, type: 2} 13 | m_OverrideClip: {fileID: 7400000, guid: 15d83fcf5bc0b4a4a8d9fbe4b76d4231, type: 2} 14 | - m_OriginalClip: {fileID: 7400000, guid: f802d0f8a7566f74c8649d415032765d, type: 2} 15 | m_OverrideClip: {fileID: 7400000, guid: f802d0f8a7566f74c8649d415032765d, type: 2} 16 | - m_OriginalClip: {fileID: 7400000, guid: 393e1af87be0f134386cef9f66b209c9, type: 2} 17 | m_OverrideClip: {fileID: 7400000, guid: 393e1af87be0f134386cef9f66b209c9, type: 2} 18 | - m_OriginalClip: {fileID: 7400000, guid: 5a61b98932e4657448f27009b6c39ec7, type: 2} 19 | m_OverrideClip: {fileID: 7400000, guid: 5a61b98932e4657448f27009b6c39ec7, type: 2} 20 | - m_OriginalClip: {fileID: 7400000, guid: 5776fc16d68d30847beee63a2cbe51d9, type: 2} 21 | m_OverrideClip: {fileID: 7400000, guid: 5776fc16d68d30847beee63a2cbe51d9, type: 2} 22 | -------------------------------------------------------------------------------- /Assets/Animator/Bunny.overrideController.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 23e5a20663d2ba745a8a2a7b9be526d2 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 22100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Animator/Character.controller.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 35a862e55eb35b5488b14578c8e11fda 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 9100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Animator/Kitty.overrideController: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!221 &22100000 4 | AnimatorOverrideController: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_Name: Kitty 10 | m_Controller: {fileID: 9100000, guid: 35a862e55eb35b5488b14578c8e11fda, type: 2} 11 | m_Clips: 12 | - m_OriginalClip: {fileID: 7400000, guid: 393e1af87be0f134386cef9f66b209c9, type: 2} 13 | m_OverrideClip: {fileID: 7400000, guid: fdfb9d7bd36b48642ac072a27ba25094, type: 2} 14 | - m_OriginalClip: {fileID: 7400000, guid: 5a61b98932e4657448f27009b6c39ec7, type: 2} 15 | m_OverrideClip: {fileID: 7400000, guid: 134147482c1e04644a3bd6856a0bd197, type: 2} 16 | - m_OriginalClip: {fileID: 7400000, guid: f802d0f8a7566f74c8649d415032765d, type: 2} 17 | m_OverrideClip: {fileID: 7400000, guid: c7c4795fc9c3ced47af1890bee783612, type: 2} 18 | - m_OriginalClip: {fileID: 7400000, guid: 15d83fcf5bc0b4a4a8d9fbe4b76d4231, type: 2} 19 | m_OverrideClip: {fileID: 7400000, guid: c7c4795fc9c3ced47af1890bee783612, type: 2} 20 | - m_OriginalClip: {fileID: 7400000, guid: 5776fc16d68d30847beee63a2cbe51d9, type: 2} 21 | m_OverrideClip: {fileID: 7400000, guid: 55d18d6f192344e488bbab04e5021729, type: 2} 22 | -------------------------------------------------------------------------------- /Assets/Animator/Kitty.overrideController.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6fbdab6709071a14cb01cb8cf4a6329f 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 22100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Gizmos.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 954897d7c71884c4181a8b4eddb32c0f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Gizmos/Cinemachine.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 51c0e32107bc5a24c88ba3d93e784907 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Gizmos/Cinemachine/cm_logo_lg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATHellboy/SampleProject-FightingGame/31ef28113ec72a7d481076cb4162e0f05a6b9930/Assets/Gizmos/Cinemachine/cm_logo_lg.png -------------------------------------------------------------------------------- /Assets/Infrastructure.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 971e3e421c3d08b46be42fe66419426b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Infrastructure/Extensions.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bc4074747026aa94ea38ede531df74b3 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Infrastructure/Extensions/Rigidbody2DExtension.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) ATHellboy (Alireza Tarahomi) Limited. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root. 3 | 4 | using UnityEngine; 5 | 6 | namespace Infrastructure.Extension 7 | { 8 | public static class Rigidbody2DExtension 9 | { 10 | public static void SetXVelocity(this Rigidbody2D rigidbody, float x) 11 | { 12 | rigidbody.velocity = new Vector2(x, rigidbody.velocity.y); 13 | } 14 | 15 | public static void SetYVelocity(this Rigidbody2D rigidbody, float y) 16 | { 17 | rigidbody.velocity = new Vector2(rigidbody.velocity.x, y); 18 | } 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Assets/Infrastructure/Extensions/Rigidbody2DExtension.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 97da2ed7dd80df447b429f279495bfdd 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Infrastructure/Extensions/SpriteRendererExtension.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace Infrastructure.Extension 4 | { 5 | public static class SpriteRendererExtension 6 | { 7 | public static void SetAlpha(this SpriteRenderer spriteRenderer, float a) 8 | { 9 | spriteRenderer.color = new Color(spriteRenderer.color.r, spriteRenderer.color.g, spriteRenderer.color.b, a); 10 | } 11 | } 12 | } -------------------------------------------------------------------------------- /Assets/Infrastructure/Extensions/SpriteRendererExtension.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 353d4fa6091dea446bd359a55444afeb 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Infrastructure/Extensions/TransformExtension.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) ATHellboy (Alireza Tarahomi) Limited. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root. 3 | 4 | using UnityEngine; 5 | 6 | namespace Infrastructure.Extension 7 | { 8 | public static class TransformExtension 9 | { 10 | public static void SetXPosition(this Transform transform, float x) 11 | { 12 | transform.position = new Vector3(x, transform.position.y, transform.position.z); 13 | } 14 | 15 | public static void SetYPosition(this Transform transform, float y) 16 | { 17 | transform.position = new Vector3(transform.position.x, y, transform.position.z); 18 | } 19 | 20 | public static void SetXYPosition(this Transform transform, float x, float y) 21 | { 22 | transform.position = new Vector3(x, y, transform.position.z); 23 | } 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Assets/Infrastructure/Extensions/TransformExtension.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 34afbcc43c2a98b49bc2f05021d34441 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Infrastructure/ObjectPooling.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d0b4a5dc2b5d2e84b8ec3a043a5f1ac3 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Infrastructure/ObjectPooling/IPooledObject.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) ATHellboy (Alireza Tarahomi) Limited. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root. 3 | 4 | using UnityEngine; 5 | 6 | namespace Infrastructure.ObjectPooling 7 | { 8 | public interface IPooledObject 9 | { 10 | PooledObjectStats PooledObjectStats { get; set; } 11 | 12 | void ResetValues(); 13 | } 14 | } -------------------------------------------------------------------------------- /Assets/Infrastructure/ObjectPooling/IPooledObject.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9f362dc630bd0bc47be32fae78a734cb 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Infrastructure/ObjectPooling/PooledObjectStats.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) ATHellboy (Alireza Tarahomi) Limited. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root. 3 | 4 | using UnityEngine; 5 | 6 | namespace Infrastructure.ObjectPooling 7 | { 8 | [CreateAssetMenu(menuName = "Custom/PooledObject")] 9 | public class PooledObjectStats : ScriptableObject 10 | { 11 | public Transform prefab; 12 | public int number; 13 | public ExpandBy expandBy = ExpandBy.Doubling; 14 | 15 | [HideInInspector] public Transform parent; 16 | } 17 | 18 | public enum ExpandBy 19 | { 20 | OneAtATime, 21 | Doubling 22 | } 23 | } -------------------------------------------------------------------------------- /Assets/Infrastructure/ObjectPooling/PooledObjectStats.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dfded651e93c48444b3795b47d7855fa 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Infrastructure/ObjectPooling/PoolingSystem.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 43d6f18a3a8a8b247ab2a4790a87e070 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Infrastructure/ResourceFactory.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1b1376b247ec87847955d1a2792b3f8c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Infrastructure/ResourceFactory/IResourceFactory.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) ATHellboy (Alireza Tarahomi) Limited. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root. 3 | 4 | using UnityEngine; 5 | 6 | namespace Infrastructure.Factory 7 | { 8 | public interface IResourceFactory 9 | { 10 | Object Instantiate(Object @object); 11 | Transform Instantiate(Transform transform); 12 | Transform Instantiate(Transform transform, Transform parent); 13 | Transform Instantiate(Transform transform, Vector3 position); 14 | Transform Instantiate(Transform transform, Vector3 position, Transform parent); 15 | Transform Instantiate(Transform transform, Vector3 position, Quaternion rotation, Transform parent); 16 | } 17 | } -------------------------------------------------------------------------------- /Assets/Infrastructure/ResourceFactory/IResourceFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c6d1eed0886bf0b49b13f93924eef8da 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Infrastructure/ResourceFactory/VContainerResourceFactory.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 166160b501b3f194d8d58d14628df0a9 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Infrastructure/StateMachine.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 02046faa76fdf3445943e8bab6c4d5e1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Infrastructure/StateMachine/BaseState.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: df7fc8274d400f0499cd8f70c2f7b664 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Infrastructure/StateMachine/BaseStateMachineContext.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) ATHellboy (Alireza Tarahomi) Limited. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root. 3 | 4 | using UnityEngine; 5 | 6 | namespace Infrastructure.StateMachine 7 | { 8 | public class BaseStateMachineContext : IStateMachineContext 9 | { 10 | public GameObject GO { get; private set; } 11 | public IState StartState { get; private set; } 12 | public IState CurrentState { get; set; } 13 | public bool IsActive { get; private set; } = false; 14 | public bool CanControl { get; private set; } = false; 15 | public bool DebugStateMachine { get; private set; } 16 | 17 | public BaseStateMachineContext(GameObject go, IState startState, bool debug) 18 | { 19 | GO = go; 20 | StartState = startState; 21 | DebugStateMachine = debug; 22 | } 23 | 24 | public void ToggleContext(bool active) 25 | { 26 | IsActive = active; 27 | } 28 | 29 | public void ToggleControl(bool active) 30 | { 31 | CanControl = active; 32 | } 33 | } 34 | } -------------------------------------------------------------------------------- /Assets/Infrastructure/StateMachine/BaseStateMachineContext.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ff6d3024ba7c2fb48b8b565a9b898487 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Infrastructure/StateMachine/IState.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) ATHellboy (Alireza Tarahomi) Limited. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root. 3 | 4 | namespace Infrastructure.StateMachine 5 | { 6 | public interface IState 7 | { 8 | void Enter(IStateMachineContext context); 9 | 10 | void Update(float deltaTime, StateMachine stateMachine, IStateMachineContext context); 11 | 12 | void FixedUpdate(float deltaTime, StateMachine stateMachine, IStateMachineContext context); 13 | 14 | void LateUpdate(float deltaTime, StateMachine stateMachine, IStateMachineContext context); 15 | 16 | void Exit(IStateMachineContext context); 17 | } 18 | } -------------------------------------------------------------------------------- /Assets/Infrastructure/StateMachine/IState.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f3578b2c3897fc44c9a565639ceafb58 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Infrastructure/StateMachine/IStateMachineContext.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) ATHellboy (Alireza Tarahomi) Limited. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root. 3 | 4 | using UnityEngine; 5 | 6 | namespace Infrastructure.StateMachine 7 | { 8 | public interface IStateMachineContext 9 | { 10 | GameObject GO { get; } 11 | IState StartState { get; } 12 | IState CurrentState { get; set; } 13 | bool IsActive { get; } 14 | // Uses before getting input from player 15 | bool CanControl { get; } 16 | bool DebugStateMachine { get; } 17 | } 18 | } -------------------------------------------------------------------------------- /Assets/Infrastructure/StateMachine/IStateMachineContext.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bcf2597c9ebd35d46aa67eba4171b3f3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Infrastructure/StateMachine/StateMachine.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c0ed5a4224c9dfd40a73fc489f4f2da8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Infrastructure/T4.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0230a612d9bcbce46b55a00149284c5a 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Infrastructure/T4/TagsGenerator.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fd5208ff79a713a48896d9f785e955b7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Infrastructure/T4/TagsGeneratorInterface.cs: -------------------------------------------------------------------------------- 1 | #if (UNITY_EDITOR) 2 | using System.Collections.Concurrent; 3 | using System.Collections.Generic; 4 | using System.IO; 5 | using UnityEditor; 6 | using UnityEditorInternal; 7 | using UnityEngine; 8 | 9 | namespace Infrastructure.T4 10 | { 11 | public partial class TagsGeneratorInterface : TagsGenerator 12 | { 13 | [MenuItem("Tools/Generate Tags")] 14 | public static void GenerateTags() 15 | { 16 | string outputPath = EditorUtility.SaveFilePanelInProject(title: "Save Location", defaultName: "Tags", 17 | extension: "cs", message: "Where do you want to save this script?"); 18 | 19 | TagsGenerator generator = new TagsGenerator { Session = new ConcurrentDictionary() }; 20 | 21 | string className = Path.GetFileName(outputPath).Replace(".cs", ""); 22 | 23 | generator.Session["m_ClassName"] = className; 24 | 25 | List tags = new(InternalEditorUtility.tags); 26 | 27 | for (int i = tags.Count - 1; i >= 0; i--) 28 | { 29 | if (string.IsNullOrWhiteSpace(tags[i])) 30 | { 31 | tags.RemoveAt(i); 32 | continue; 33 | } 34 | } 35 | 36 | generator.Session["m_UnityTags"] = tags.ToArray(); 37 | 38 | generator.Initialize(); 39 | 40 | string classDef = generator.TransformText(); 41 | 42 | File.WriteAllText(outputPath, classDef); 43 | 44 | AssetDatabase.Refresh(); 45 | } 46 | } 47 | } 48 | #endif -------------------------------------------------------------------------------- /Assets/Infrastructure/T4/TagsGeneratorInterface.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1878520a629146a428a2a3d9f39e8a0b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 687b57067aaf25c4f9fe704964c9d7e6 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Materials/NoFriction.physicsMaterial2D: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!62 &6200000 4 | PhysicsMaterial2D: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInternal: {fileID: 0} 8 | m_Name: NoFriction 9 | friction: 0 10 | bounciness: 0 11 | -------------------------------------------------------------------------------- /Assets/Materials/NoFriction.physicsMaterial2D.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 597719c29bf334040b9231d06af0f128 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 6200000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Palettes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2987247255fa7c0448975345a0f8369f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Palettes/Slope.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 13312, guid: 0000000000000000e000000000000000, type: 0} 13 | m_Name: Slope 14 | m_EditorClassIdentifier: 15 | m_Sprite: {fileID: 21300000, guid: 490bd14b612b0c647b93fd3d5663b347, type: 3} 16 | m_Color: {r: 1, g: 1, b: 1, a: 1} 17 | m_Transform: 18 | e00: 1 19 | e01: 0 20 | e02: 0 21 | e03: 0 22 | e10: 0 23 | e11: 1 24 | e12: 0 25 | e13: 0 26 | e20: 0 27 | e21: 0 28 | e22: 1 29 | e23: 0 30 | e30: 0 31 | e31: 0 32 | e32: 0 33 | e33: 1 34 | m_InstancedGameObject: {fileID: 0} 35 | m_Flags: 1 36 | m_ColliderType: 1 37 | -------------------------------------------------------------------------------- /Assets/Palettes/Slope.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d998b88d1246b844ea5ab370646ffb2e 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Palettes/Slope2.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 13312, guid: 0000000000000000e000000000000000, type: 0} 13 | m_Name: Slope2 14 | m_EditorClassIdentifier: 15 | m_Sprite: {fileID: 21300000, guid: 69bbe877332c7594da0f241bb54eeb2a, type: 3} 16 | m_Color: {r: 1, g: 1, b: 1, a: 1} 17 | m_Transform: 18 | e00: 1 19 | e01: 0 20 | e02: 0 21 | e03: 0 22 | e10: 0 23 | e11: 1 24 | e12: 0 25 | e13: 0 26 | e20: 0 27 | e21: 0 28 | e22: 1 29 | e23: 0 30 | e30: 0 31 | e31: 0 32 | e32: 0 33 | e33: 1 34 | m_InstancedGameObject: {fileID: 0} 35 | m_Flags: 1 36 | m_ColliderType: 1 37 | -------------------------------------------------------------------------------- /Assets/Palettes/Slope2.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9b787b8ffd3a97d4199ec08ed9ce9bf6 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Palettes/Slope3.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 13312, guid: 0000000000000000e000000000000000, type: 0} 13 | m_Name: Slope3 14 | m_EditorClassIdentifier: 15 | m_Sprite: {fileID: 21300000, guid: 4c3f38b7ac81c024292fc1587ee4a4b0, type: 3} 16 | m_Color: {r: 1, g: 1, b: 1, a: 1} 17 | m_Transform: 18 | e00: 1 19 | e01: 0 20 | e02: 0 21 | e03: 0 22 | e10: 0 23 | e11: 1 24 | e12: 0 25 | e13: 0 26 | e20: 0 27 | e21: 0 28 | e22: 1 29 | e23: 0 30 | e30: 0 31 | e31: 0 32 | e32: 0 33 | e33: 1 34 | m_InstancedGameObject: {fileID: 0} 35 | m_Flags: 1 36 | m_ColliderType: 1 37 | -------------------------------------------------------------------------------- /Assets/Palettes/Slope3.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4d051a4575d72a04cb277a7c870ebe1a 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Palettes/Square.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 13312, guid: 0000000000000000e000000000000000, type: 0} 13 | m_Name: Square 14 | m_EditorClassIdentifier: 15 | m_Sprite: {fileID: 21300000, guid: 59fbe3c153099c04ebb57d72c5b38965, type: 3} 16 | m_Color: {r: 1, g: 1, b: 1, a: 1} 17 | m_Transform: 18 | e00: 1 19 | e01: 0 20 | e02: 0 21 | e03: 0 22 | e10: 0 23 | e11: 1 24 | e12: 0 25 | e13: 0 26 | e20: 0 27 | e21: 0 28 | e22: 1 29 | e23: 0 30 | e30: 0 31 | e31: 0 32 | e32: 0 33 | e33: 1 34 | m_InstancedGameObject: {fileID: 0} 35 | m_Flags: 1 36 | m_ColliderType: 1 37 | -------------------------------------------------------------------------------- /Assets/Palettes/Square.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: be9a504bf3cec1148830cdfdc7ac008d 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8d9c30d25ab6ea2418c1cbbf5c4ade1b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/ScriptableObjectDropdown.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f22ef0aa01f239b4bbced40f49ab3d3d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/ScriptableObjectDropdown/Editor.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b5a1f45e491c7b5489665a38787ecd5f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/ScriptableObjectDropdown/Editor/ScriptableObjectDropdownDrawer.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 48fa782dc34874341b79de978dec5109 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Plugins/ScriptableObjectDropdown/Extention.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 982f78f77cbb33c428d79c175ecbd60d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Plugins/ScriptableObjectDropdown/Extention/TypeExtension.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace ScriptableObjectDropdown.Extension 4 | { 5 | public static class TypeExtension 6 | { 7 | public static System.Reflection.FieldInfo GetFieldViaPath(this System.Type type, string path) 8 | { 9 | System.Type parentType = type; 10 | System.Reflection.FieldInfo fi = type.GetField(path); 11 | string[] perDot = path.Split('.'); 12 | foreach (string fieldName in perDot) 13 | { 14 | fi = parentType.GetField(fieldName); 15 | if (fi != null) 16 | parentType = fi.FieldType; 17 | else 18 | return null; 19 | } 20 | if (fi != null) 21 | return fi; 22 | else return null; 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /Assets/Plugins/ScriptableObjectDropdown/Extention/TypeExtension.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: edaf47130ecd91648a362e16adf3312c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Plugins/ScriptableObjectDropdown/ScriptableObjectDropdownAttribute.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 951d29a1d08b1894588ff11b26cae861 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Plugins/ScriptableObjectDropdown/ScriptableObjectReference.cs: -------------------------------------------------------------------------------- 1 | // Copyright (c) ATHellboy (Alireza Tarahomi) Limited. All rights reserved. 2 | // Licensed under the MIT license. See LICENSE file in the project root. 3 | 4 | using System; 5 | using UnityEngine; 6 | 7 | namespace ScriptableObjectDropdown 8 | { 9 | /// 10 | /// Because PropertyDrawer OnGUI is not called for interfaces, 11 | /// I had to create parent class as an abstract layer. 12 | /// 13 | [Serializable] 14 | public class ScriptableObjectReference 15 | { 16 | public ScriptableObject value; 17 | } 18 | } -------------------------------------------------------------------------------- /Assets/Plugins/ScriptableObjectDropdown/ScriptableObjectReference.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b319f20a9e93f9442b6b0a0b0137dfb3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Prefabs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 57245a966069b674fb55d33a84c325d1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs/Characters.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5558ebbe0b7a5de448cdc67f20ac567e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs/Characters/Bunny.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 995e9cb7aa375c345a70932618038562 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/Characters/Character.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 39b641a584be8f34b9bbf8f83d466a54 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/Characters/Kitty.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 220dc9839ff162343b8908e618e2f196 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/General.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 809669331401aa948bcd229a883cc471 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs/General/Camera.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 371a349e5f1ebc74dbfc643ba4dcf585 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/General/PlayersManager.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 23a09723493c3f74b87e8743e69d52c6 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/General/Services.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ba3b6432ea524e6499b77169b5903e64 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/Player.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e64d122fbee1ea5439a3679c7bc3ef5c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs/Player/Player.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bc1e9473d75aeed46a3832ef8ce8da80 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/Tools.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f937a07a7f9fe8d4b88c8ca378696eec 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs/Tools/KittyShuriken.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 67d694614dc03a643b936ddda83dcd82 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/Tools/Shuriken.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 47e219dcf944ccd40a581635c8c00fbe 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 100100000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs/UI.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3133794d14ff6614790f31f6677d0cc7 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs/UI/AttackCooldown.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1e460ad445584b44fa0ad3f7d8c57d29 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs/UI/AttackCooldown/AttackTimer.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 90e389a1b7d2ef44cbfad2a5c58432a8 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/UI/AttackCooldown/ComplexAttackTimer.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8deb31befd8889940a94c080dab2964c 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/UI/AttackCooldown/NormalAttackTimer.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b0c77abc5b1063c4fa3df5a3b4423939 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/UI/AttackCooldown/PowerupTimer.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0ea98f7556ea64c4bb38b95908b831b8 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/UI/Canvas.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4e6bedd29e95ca24b97f8da4017f5581 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/UI/GameOver.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 09f48ee83124ae341a34a3a68af182cf 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/UI/PlayerStats.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e78b0cb8449fbf84f8e2e4a6db7d087a 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Prefabs/World.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a3a1ca3fbe7be9243a335442e9ac71de 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Prefabs/World/CharactersTrigger.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b9695068a44f5ec45bfc0021f1b4ea19 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/Scenes.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 131a6b21c8605f84396be9f6751fb6e3 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scenes/SampleScene.unity.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2cda990e2423bbf4892e6590ba056729 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 27640695a50969b4195bd37b0c7fb203 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/AttackBehaviors.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ee72d18e779dfba418a6e85c155a5ab1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/AttackBehaviors/ComplexAttackBehaviors.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7f1164db6e6d3364bbb5be3b98417197 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/AttackBehaviors/ComplexAttackBehaviors/BunnyForwardMeleeAttackBehavior.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 9d1524b9e21b2f54f8684c64e6947658, type: 3} 13 | m_Name: BunnyForwardMeleeAttackBehavior 14 | m_EditorClassIdentifier: 15 | velocity: 50 16 | distance: 8 17 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/AttackBehaviors/ComplexAttackBehaviors/BunnyForwardMeleeAttackBehavior.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eed8e17f61150c54081280418e57a71b 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/AttackBehaviors/ComplexAttackBehaviors/KittyThreeDirectionThrowingBehavior.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 4b2d5cd5636f96c44999f525d24bb90e, type: 3} 13 | m_Name: KittyThreeDirectionThrowingBehavior 14 | m_EditorClassIdentifier: 15 | _objectCounter: {fileID: 11400000, guid: 1e636000e75c9ec4e8e37e9f6459b928, type: 2} 16 | _throwingForce: 1.5 17 | _throwableObjectPoolStats: {fileID: 11400000, guid: 55e2b2fcfdc7d0140a6408ec5df04a49, 18 | type: 2} 19 | _offsetDegree: 20 20 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/AttackBehaviors/ComplexAttackBehaviors/KittyThreeDirectionThrowingBehavior.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 614627976eece1141aca4e45b9b227d0 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/AttackBehaviors/NormalAttackBehaviors.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2bf197857bab0c34ab1d8c4415eec91f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/AttackBehaviors/NormalAttackBehaviors/BunnyMeleeAttackBehavior.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: dbc4f3f924bd11c46bc0ac96f3ffbc69, type: 3} 13 | m_Name: BunnyMeleeAttackBehavior 14 | m_EditorClassIdentifier: 15 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/AttackBehaviors/NormalAttackBehaviors/BunnyMeleeAttackBehavior.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e0144e36f12a1ab4b97f60121bf678dd 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/AttackBehaviors/NormalAttackBehaviors/KittyStraightLineThrowingBehavior.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 3c2f9fed6a20afc48a02a5e61aa556f3, type: 3} 13 | m_Name: KittyStraightLineThrowingBehavior 14 | m_EditorClassIdentifier: 15 | _objectCounter: {fileID: 11400000, guid: 1e636000e75c9ec4e8e37e9f6459b928, type: 2} 16 | _throwingForce: 1.5 17 | _throwableObjectPoolStats: {fileID: 11400000, guid: 55e2b2fcfdc7d0140a6408ec5df04a49, 18 | type: 2} 19 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/AttackBehaviors/NormalAttackBehaviors/KittyStraightLineThrowingBehavior.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 191ea7ceed5d796429abf3d2c9f7058f 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/AttackBehaviors/PowerupAttackBehaviors.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bf83d380bc6fa5847b5f18cd9e1081a2 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/AttackBehaviors/PowerupAttackBehaviors/BunnyFlyOverAttackBehavior.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 5a7c7c4df897b9d48aa9a9f110ab1a57, type: 3} 13 | m_Name: BunnyFlyOverAttackBehavior 14 | m_EditorClassIdentifier: 15 | velocity: 50 16 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/AttackBehaviors/PowerupAttackBehaviors/BunnyFlyOverAttackBehavior.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c7fed5e2f503bc54f9f8b00568b36926 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/Characters.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 76ed7a51d1b7c53449fe714e3d743a22 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/Characters/Bunny.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 07783d7247b8d864582ac7d2edaccff2, type: 3} 13 | m_Name: Bunny 14 | m_EditorClassIdentifier: 15 | prefab: {fileID: 4323936049195956478, guid: 995e9cb7aa375c345a70932618038562, type: 3} 16 | groundMovementValues: 17 | moveSpeed: 10 18 | airMovementValues: 19 | inAirMoveSpeed: 7 20 | jumpHeight: 6 21 | lessJumpHeight: 4 22 | jumpSpeed: 30 23 | jumpNumber: 1 24 | cameraValues: 25 | cameraRadius: 5.1 26 | cameraWeight: 1 27 | avatarCameraValues: 28 | size: 0.85 29 | offset: {x: -0.15, y: 0.15} 30 | miscValues: 31 | attackRate: 0.5 32 | enteringForce: 4 33 | exitVelocity: 70 34 | behaviors: 35 | normalAttack: 36 | value: {fileID: 11400000, guid: e0144e36f12a1ab4b97f60121bf678dd, type: 2} 37 | complextAttack: 38 | value: {fileID: 11400000, guid: eed8e17f61150c54081280418e57a71b, type: 2} 39 | powerup: 40 | value: {fileID: 11400000, guid: 23fee4e81344db84988acb07f97dc3bd, type: 2} 41 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/Characters/Bunny.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 26925a53f30441f468c7276e0837c70f 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/Characters/Kitty.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 07783d7247b8d864582ac7d2edaccff2, type: 3} 13 | m_Name: Kitty 14 | m_EditorClassIdentifier: 15 | prefab: {fileID: 9008039470835572715, guid: 220dc9839ff162343b8908e618e2f196, type: 3} 16 | groundMovementValues: 17 | moveSpeed: 10 18 | airMovementValues: 19 | inAirMoveSpeed: 7 20 | jumpHeight: 6 21 | lessJumpHeight: 4 22 | jumpSpeed: 30 23 | jumpNumber: 2 24 | cameraValues: 25 | cameraRadius: 5.46 26 | cameraWeight: 1 27 | avatarCameraValues: 28 | size: 0.85 29 | offset: {x: 0.15, y: 0.3} 30 | miscValues: 31 | attackRate: 0.5 32 | enteringForce: 4 33 | exitVelocity: 70 34 | behaviors: 35 | normalAttack: 36 | value: {fileID: 11400000, guid: 191ea7ceed5d796429abf3d2c9f7058f, type: 2} 37 | complextAttack: 38 | value: {fileID: 11400000, guid: 614627976eece1141aca4e45b9b227d0, type: 2} 39 | powerup: 40 | value: {fileID: 11400000, guid: c9a384fc419c2cf499df96a287c7e8cd, type: 2} 41 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/Characters/Kitty.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 394cc4c588c2dfb4281584e68610de9a 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/PooledObjects.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2d2608b0ba3cdea4e843e7c7ee1f8bd4 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/PooledObjects/KittyShuriken.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: dfded651e93c48444b3795b47d7855fa, type: 3} 13 | m_Name: KittyShuriken 14 | m_EditorClassIdentifier: 15 | prefab: {fileID: 3681795646989281238, guid: 67d694614dc03a643b936ddda83dcd82, type: 3} 16 | number: 20 17 | expandBy: 0 18 | parent: {fileID: 0} 19 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/PooledObjects/KittyShuriken.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 55e2b2fcfdc7d0140a6408ec5df04a49 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/Powerups.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d4c48160767039748a7bf9083e79d739 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/Powerups/BunnyFlyOverPowerup.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 2bfc1d2f7c59e0a4eb2c8ca4ee0eb8c6, type: 3} 13 | m_Name: BunnyFlyOverPowerup 14 | m_EditorClassIdentifier: 15 | _powerupAttackBehavior: 16 | value: {fileID: 11400000, guid: c7fed5e2f503bc54f9f8b00568b36926, type: 2} 17 | _cooldown: 3 18 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/Powerups/BunnyFlyOverPowerup.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 23fee4e81344db84988acb07f97dc3bd 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/Powerups/KittyUnlimitedThrowingObjectPowerup.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 6c1aae2142c774b4f83ab6372b05aaae, type: 3} 13 | m_Name: KittyUnlimitedThrowingObjectPowerup 14 | m_EditorClassIdentifier: 15 | _objectCounter: {fileID: 11400000, guid: 1e636000e75c9ec4e8e37e9f6459b928, type: 2} 16 | _time: 3 17 | _cooldown: 7 18 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/Powerups/KittyUnlimitedThrowingObjectPowerup.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c9a384fc419c2cf499df96a287c7e8cd 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/VContainerSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 9cf4d8df1d704d5689f3c69bd70d1cb9, type: 3} 13 | m_Name: VContainerSettings 14 | m_EditorClassIdentifier: 15 | RootLifetimeScope: {fileID: 0} 16 | EnableDiagnostics: 0 17 | DisableScriptModifier: 0 18 | RemoveClonePostfix: 0 19 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/VContainerSettings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f96079d3e6993684388a579114a90aab 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/Variables.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1ec8d97a785e6854380479489ccd33bf 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/Variables/KittyShurikenCounter.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 2ccfdc0557296da4c968529fbf80ceab, type: 3} 13 | m_Name: KittyShurikenCounter 14 | m_EditorClassIdentifier: 15 | _defaltValue: 9 16 | -------------------------------------------------------------------------------- /Assets/ScriptableObjects/Variables/KittyShurikenCounter.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1e636000e75c9ec4e8e37e9f6459b928 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 57bcd8feefe8367428b565abe1c514da 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Camera.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e718c8fab049159429df21ba01767a4b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Camera/CameraManager.cs: -------------------------------------------------------------------------------- 1 | using Cinemachine; 2 | using UnityEngine; 3 | 4 | namespace AlirezaTarahomi.FightingGame.CameraSystem 5 | { 6 | public class CameraManager : MonoBehaviour 7 | { 8 | [SerializeField] private Transform _targetGroup; 9 | [SerializeField] private CinemachineVirtualCamera _cinemachineVirtualCamera; 10 | 11 | void Awake() 12 | { 13 | _cinemachineVirtualCamera.Follow = _targetGroup; 14 | } 15 | } 16 | } -------------------------------------------------------------------------------- /Assets/Scripts/Camera/CameraManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fa78db8e728059943a2bdd3e3c32bb1c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Camera/MainCameraController.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace AlirezaTarahomi.FightingGame.CameraSystem 4 | { 5 | public class MainCameraController : MonoBehaviour 6 | { 7 | public Camera MainCamera { get; private set; } 8 | 9 | public Vector2 CameraSize 10 | { 11 | get 12 | { 13 | float height = 2f * MainCamera.orthographicSize; 14 | float width = height * MainCamera.aspect; 15 | 16 | return new(width, height); 17 | } 18 | } 19 | 20 | void Awake() 21 | { 22 | MainCamera = GetComponent(); 23 | } 24 | } 25 | } -------------------------------------------------------------------------------- /Assets/Scripts/Camera/MainCameraController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cb00fc5b1ce5d8a4b988b8ae59822a12 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Camera/TargetGroupController.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using Cinemachine; 3 | 4 | namespace AlirezaTarahomi.FightingGame.CameraSystem 5 | { 6 | public class TargetGroupController 7 | { 8 | private readonly CinemachineTargetGroup _targetGroup; 9 | 10 | public TargetGroupController(CinemachineTargetGroup targetGroup) 11 | { 12 | _targetGroup = targetGroup; 13 | } 14 | 15 | public void AssignTarget(int index, Transform target, float radius, float weight) 16 | { 17 | _targetGroup.m_Targets[index] = new CinemachineTargetGroup.Target { target = target, radius = radius, weight = weight }; 18 | } 19 | } 20 | } -------------------------------------------------------------------------------- /Assets/Scripts/Camera/TargetGroupController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fde37b5b5e46c114eb46e2e14a0e9037 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 344cfdb600934174983a304e2a159284 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Behaviors.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a1e22b0e384ae164f952047c59ef1e4b 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Behaviors/CharacterBehaviorContext.cs: -------------------------------------------------------------------------------- 1 | using AlirezaTarahomi.FightingGame.Character.Event; 2 | using AlirezaTarahomi.FightingGame.Service; 3 | using UniRx; 4 | using UnityEngine; 5 | 6 | namespace AlirezaTarahomi.FightingGame.Character.Behavior 7 | { 8 | public class CharacterBehaviorContext 9 | { 10 | public int jumpCounter; 11 | public bool isPowerupActive; 12 | public Collider2D hitboxCollider; 13 | 14 | public OnAttackEnded OnAttackEnded { get; private set; } = new(); 15 | public OnFlyingToggled OnFlyingToggled { get; private set; } = new(); 16 | public Transform Transform { get; private set; } 17 | public CharacterPivot Pivot { get; private set; } 18 | public IOwnershipService OwnershipService { get; private set; } 19 | public CharacterAnimatorController AnimatorController { get; private set; } 20 | public CharacterLocomotionHandler LocomotionHandler { get; private set; } 21 | public SurfaceCheck SurfaceCheck { get; private set; } 22 | public CompositeDisposable Disposables { get; private set; } = new(); 23 | 24 | public CharacterBehaviorContext(Transform transform, CharacterPivot pivot, IOwnershipService ownershipService, 25 | CharacterAnimatorController animatorController, CharacterLocomotionHandler locomotionHandler, 26 | SurfaceCheck surfaceCheck) 27 | { 28 | Transform = transform; 29 | Pivot = pivot; 30 | OwnershipService = ownershipService; 31 | AnimatorController = animatorController; 32 | LocomotionHandler = locomotionHandler; 33 | SurfaceCheck = surfaceCheck; 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/Behaviors/CharacterBehaviorContext.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8fc12b6b93ae9a14a956ca4be1322d75 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Behaviors/ComplexBehaviors.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 73e6efa57ed1f2a40bbd0021c48a4731 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Behaviors/ComplexBehaviors/ForwardMeleeAttackBehavior.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9d1524b9e21b2f54f8684c64e6947658 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Behaviors/ComplexBehaviors/IComplextAttackBehavior.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace AlirezaTarahomi.FightingGame.Character.Behavior.Complex 4 | { 5 | public interface IComplexAttackBehavior : IAttackBehavior 6 | { 7 | 8 | } 9 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/Behaviors/ComplexBehaviors/IComplextAttackBehavior.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7e4e7e1c8f6b51345bfc52c5873e291a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Behaviors/ComplexBehaviors/ThreeDirectionThrowingAttackBehavior.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace AlirezaTarahomi.FightingGame.Character.Behavior.Complex 4 | { 5 | [CreateAssetMenu(menuName = "Custom/Attacks/Complex Attacks/ThreeDirectionThrowingBehavior")] 6 | public class ThreeDirectionThrowingAttackBehavior : ThrowingObjectBehavior, IComplexAttackBehavior 7 | { 8 | [SerializeField] private float _offsetDegree = 20; 9 | 10 | public Status BehaviorCondition 11 | { 12 | get 13 | { 14 | if (_context.jumpCounter == 2) 15 | { 16 | return Status.Success; 17 | } 18 | return Status.Fail; 19 | } 20 | } 21 | 22 | public void Behave() 23 | { 24 | Vector3 angleUnit = (_context.Pivot.transform.right - _context.Pivot.transform.up) / 90; 25 | UseObject(-_context.Pivot.transform.up + _offsetDegree * angleUnit); 26 | UseObject(((-_context.Pivot.transform.up + (_context.Pivot.transform.right - _context.Pivot.transform.up) / 2) / 2) + 27 | _offsetDegree * angleUnit); 28 | UseObject(((_context.Pivot.transform.right - _context.Pivot.transform.up) / 2) + _offsetDegree * angleUnit); 29 | } 30 | 31 | public void EndBehavior() 32 | { 33 | 34 | } 35 | } 36 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/Behaviors/ComplexBehaviors/ThreeDirectionThrowingAttackBehavior.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4b2d5cd5636f96c44999f525d24bb90e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Behaviors/IAttackBehavior.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace AlirezaTarahomi.FightingGame.Character.Behavior 4 | { 5 | public interface IAttackBehavior : IBehavior 6 | { 7 | 8 | } 9 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/Behaviors/IAttackBehavior.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 452206b25c857ef4eb7dd7a2f3f672c8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Behaviors/IBehavior.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace AlirezaTarahomi.FightingGame.Character.Behavior 4 | { 5 | public interface IBehavior 6 | { 7 | Status BehaviorCondition { get; } 8 | 9 | void Behave(); 10 | 11 | void EndBehavior(); 12 | } 13 | 14 | public enum Status 15 | { 16 | Success, 17 | Fail 18 | } 19 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/Behaviors/IBehavior.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cf07641c08d2c0a4f98be6fb2dedaff7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Behaviors/NormalBehaviors.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cfc003d47b7b90d4681379fb5317cf8f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Behaviors/NormalBehaviors/INormalAttackBehavior.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace AlirezaTarahomi.FightingGame.Character.Behavior.Normal 4 | { 5 | public interface INormalAttackBehavior : IAttackBehavior 6 | { 7 | 8 | } 9 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/Behaviors/NormalBehaviors/INormalAttackBehavior.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ba1e47bbf0a7116409531ad2eca612c7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Behaviors/NormalBehaviors/MeleeAttackBehavior.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using System.Collections; 3 | using UniRx; 4 | using VContainer; 5 | 6 | namespace AlirezaTarahomi.FightingGame.Character.Behavior.Normal 7 | { 8 | [CreateAssetMenu(menuName = "Custom/Attacks/Normal Attacks/MeleeAttackBehavior")] 9 | public class MeleeAttackBehavior : ScriptableObject, INormalAttackBehavior 10 | { 11 | [SerializeField] private float _duration = 0.2f; 12 | 13 | private CharacterBehaviorContext _context; 14 | 15 | [Inject] 16 | public void Construct(CharacterBehaviorContext context) 17 | { 18 | _context = context; 19 | } 20 | 21 | public Status BehaviorCondition 22 | { 23 | get 24 | { 25 | if (_context.SurfaceCheck.onGround) 26 | { 27 | return Status.Success; 28 | } 29 | return Status.Fail; 30 | } 31 | } 32 | 33 | public void Behave() 34 | { 35 | _context.hitboxCollider.enabled = true; 36 | _context.AnimatorController.ToggleAttacking(true); 37 | Observable.FromCoroutine(_ => AttackTime()).Subscribe().AddTo(_context.Disposables); 38 | } 39 | 40 | public void EndBehavior() 41 | { 42 | _context.hitboxCollider.enabled = false; 43 | _context.AnimatorController.ToggleAttacking(false); 44 | } 45 | 46 | IEnumerator AttackTime() 47 | { 48 | yield return new WaitForSeconds(_duration); 49 | _context.OnAttackEnded?.Invoke(); 50 | } 51 | } 52 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/Behaviors/NormalBehaviors/MeleeAttackBehavior.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dbc4f3f924bd11c46bc0ac96f3ffbc69 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Behaviors/NormalBehaviors/StraightLineThrowingAttackBehavior.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace AlirezaTarahomi.FightingGame.Character.Behavior.Normal 4 | { 5 | [CreateAssetMenu(menuName = "Custom/Attacks/Normal Attacks/StraightLineThrowingBehavior")] 6 | public class StraightLineThrowingAttackBehavior : ThrowingObjectBehavior, INormalAttackBehavior 7 | { 8 | public Status BehaviorCondition 9 | { 10 | get 11 | { 12 | if (_context.SurfaceCheck.onGround || _context.jumpCounter <= 1) 13 | { 14 | return Status.Success; 15 | } 16 | return Status.Fail; 17 | } 18 | } 19 | 20 | public void Behave() 21 | { 22 | UseObject(_context.Pivot.transform.right); 23 | } 24 | 25 | public void EndBehavior() 26 | { 27 | 28 | } 29 | } 30 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/Behaviors/NormalBehaviors/StraightLineThrowingAttackBehavior.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3c2f9fed6a20afc48a02a5e61aa556f3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Behaviors/PowerupBehaviors.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 81426e9aaf255db4c937fcc3ab5f052f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Behaviors/PowerupBehaviors/FlyOverAttackBehavior.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5a7c7c4df897b9d48aa9a9f110ab1a57 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Behaviors/PowerupBehaviors/IPowerupAttackBehavior.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace AlirezaTarahomi.FightingGame.Character.Behavior.Powerup 4 | { 5 | public interface IPowerupAttackBehavior : IAttackBehavior 6 | { 7 | 8 | } 9 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/Behaviors/PowerupBehaviors/IPowerupAttackBehavior.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: af9018ddc0777e74f820cd5e01cfb432 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Behaviors/ThrowingObjectBehavior.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using VContainer; 3 | using AlirezaTarahomi.FightingGame.Tool; 4 | using Infrastructure.ObjectPooling; 5 | using AlirezaTarahomi.FightingGame.General.Variable; 6 | 7 | namespace AlirezaTarahomi.FightingGame.Character.Behavior 8 | { 9 | public abstract class ThrowingObjectBehavior : ScriptableObject 10 | { 11 | [SerializeField] private IntVariable _objectCounter; 12 | [SerializeField] private float _throwingForce = 1.5f; 13 | [SerializeField] private PooledObjectStats _throwableObjectPoolStats; 14 | 15 | private PoolingSystem _poolSystem; 16 | protected CharacterBehaviorContext _context; 17 | 18 | [Inject] 19 | public void Construct(PoolingSystem poolSystem, CharacterBehaviorContext context) 20 | { 21 | _poolSystem = poolSystem; 22 | _context = context; 23 | } 24 | 25 | public void UseObject(Vector3 direction) 26 | { 27 | if (_objectCounter.value > 0) 28 | { 29 | _objectCounter.value--; 30 | Transform obj = _poolSystem.Spawn(_throwableObjectPoolStats, _context.Transform.position + 31 | _context.Pivot.transform.right, Quaternion.identity); 32 | _context.OwnershipService.Add(obj.gameObject); 33 | IThrowableObject throwableObject = obj.GetComponent(); 34 | if (_context.isPowerupActive) 35 | { 36 | throwableObject.PrepareForPowerup(); 37 | } 38 | throwableObject.Throw(_throwingForce, direction.normalized); 39 | } 40 | _context.OnAttackEnded?.Invoke(); 41 | } 42 | } 43 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/Behaviors/ThrowingObjectBehavior.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 38697ce8ef1b20d43a83d728c173662e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/CharacterAnimatorController.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace AlirezaTarahomi.FightingGame.Character 4 | { 5 | public class CharacterAnimatorController 6 | { 7 | private const string StopParameter = "isStopped"; 8 | private const string MoveParameter = "isMoved"; 9 | private const string JumpParameter = "isJumped"; 10 | private const string FallParameter = "isFallen"; 11 | private const string LandParameter = "isLanded"; 12 | private const string AttackParameter = "isAttacked"; 13 | private const string DieParameter = "isDied"; 14 | 15 | private readonly Animator _animator; 16 | 17 | public CharacterAnimatorController(Animator animator) 18 | { 19 | _animator = animator; 20 | } 21 | 22 | public void ToggleStopping(bool active) 23 | { 24 | _animator.SetBool(StopParameter, active); 25 | } 26 | 27 | public void ToggleMoving(bool active) 28 | { 29 | _animator.SetBool(MoveParameter, active); 30 | } 31 | 32 | public void ToggleJumping(bool active) 33 | { 34 | _animator.SetBool(JumpParameter, active); 35 | } 36 | 37 | public void ToggleFalling(bool active) 38 | { 39 | _animator.SetBool(FallParameter, active); 40 | } 41 | 42 | public void ToggleLanding(bool active) 43 | { 44 | _animator.SetBool(LandParameter, active); 45 | } 46 | 47 | public void ToggleAttacking(bool active) 48 | { 49 | _animator.SetBool(AttackParameter, active); 50 | } 51 | 52 | public void Die() 53 | { 54 | _animator.SetBool(DieParameter, true); 55 | } 56 | 57 | public void Reset() 58 | { 59 | _animator.Rebind(); 60 | } 61 | } 62 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/CharacterAnimatorController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9f6106fa5edafe54c840ad226e2a3b0c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/CharacterContext.cs: -------------------------------------------------------------------------------- 1 | using UniRx; 2 | using UnityEngine; 3 | 4 | namespace AlirezaTarahomi.FightingGame.Character 5 | { 6 | public class CharacterContext : MonoBehaviour 7 | { 8 | public bool debugStateMachine = false; 9 | public CharacterStats stats; 10 | public float throwingAngle = 30; 11 | public float dieFadeOutDelay = 0.5f; 12 | public float dieFadeOutDuration = 0.5f; 13 | 14 | public CompositeDisposable Disposables { get; private set; } = new(); 15 | } 16 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/CharacterContext.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9558e38348af2f843924c1ae4b97b909 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/CharacterController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 86d5e2f2ea38e4e45a4b0d7a30a1db57 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 400 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/CharacterHurtBoxHandler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ae66d05cb109c7e45bce65c01acad58a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/CharacterLifetimeScope.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 66769abd20b9b6649a4e7d6fdb77d564 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/CharacterLocomotionHandler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4629a2e81b2ab4e43bc7bdbc1e474ce8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/CharacterPivot.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace AlirezaTarahomi.FightingGame.Character 4 | { 5 | public class CharacterPivot : MonoBehaviour 6 | { 7 | 8 | } 9 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/CharacterPivot.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a008fb0146d043a4c9b00f99d4b575dd 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/CharacterStats.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 07783d7247b8d864582ac7d2edaccff2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Contexts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6813a0c59edb3dd419b761e29c97c7ca 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Contexts/CharacterCombatStateMachineContext.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: be5a1edd6a21bb84784a5afe092a2645 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Contexts/CharacterMainStateMachineContext.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using AlirezaTarahomi.FightingGame.Character.State.Main; 3 | using Infrastructure.StateMachine; 4 | using AlirezaTarahomi.FightingGame.Character.Event; 5 | 6 | namespace AlirezaTarahomi.FightingGame.Character.Context 7 | { 8 | public class CharacterMainStateMachineContext : BaseStateMachineContext 9 | { 10 | public Vector2 moveAxesRaw; 11 | public Vector2 moveAxes; 12 | public bool isInjured; 13 | 14 | public OnDied OnDied { get; private set; } = new(); 15 | public CharacterLocomotionHandler LocomotionHandler { get; private set; } 16 | public CharacterAnimatorController AnimatorController { get; private set; } 17 | public CharacterContext CharacterContext { get; private set; } 18 | public SurfaceCheck SurfaceCheck { get; private set; } 19 | 20 | public class States 21 | { 22 | public Idle idle; 23 | public Move move; 24 | public Die die; 25 | 26 | public States(Idle idle, Move move, Die die) 27 | { 28 | this.idle = idle; 29 | this.move = move; 30 | this.die = die; 31 | } 32 | } 33 | public States RelatedStates { get; } 34 | 35 | public CharacterMainStateMachineContext(Transform transform, CharacterContext characterContext, 36 | CharacterLocomotionHandler locomotionHandler, CharacterAnimatorController animatorController, SurfaceCheck surfaceCheck, 37 | Idle idle, Move move, Die die) : base(transform.gameObject, idle, characterContext.debugStateMachine) 38 | { 39 | CharacterContext = characterContext; 40 | LocomotionHandler = locomotionHandler; 41 | AnimatorController = animatorController; 42 | SurfaceCheck = surfaceCheck; 43 | RelatedStates = new States(idle, move, die); 44 | } 45 | } 46 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/Contexts/CharacterMainStateMachineContext.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 248cfecd7c60c9b45bb96106e9604821 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Contexts/CharacterSecondaryMovementStateMachineContext.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ef0dd9b4f0216344afd5346150202fe 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Events.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0920f71a08e859b4eb46f9b92d65d382 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Events/OnAttackEnded.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.Events; 3 | 4 | namespace AlirezaTarahomi.FightingGame.Character.Event 5 | { 6 | public class OnAttackEnded : UnityEvent { } 7 | } 8 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Events/OnAttackEnded.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8fcca511f95f29d4aa9d83003a7dc4b7 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Events/OnAttackStarted.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | using UnityEngine.Events; 4 | 5 | namespace AlirezaTarahomi.FightingGame.Character.Event 6 | { 7 | public class OnAttackStarted : UnityEvent { } 8 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/Events/OnAttackStarted.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6bad5b005ee58904fb51a00f69b177e2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Events/OnChangeMoveSpeedRequested.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.Events; 3 | 4 | namespace AlirezaTarahomi.FightingGame.Character.Event 5 | { 6 | public class OnChangeMoveSpeedRequested : UnityEvent { } 7 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/Events/OnChangeMoveSpeedRequested.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 235ef4b95ca6d6947b2437428b2d1007 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Events/OnDied.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.Events; 3 | 4 | namespace AlirezaTarahomi.FightingGame.Character.Event 5 | { 6 | public class OnDied : UnityEvent { } 7 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/Events/OnDied.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 787e40616caacd74fa781dadae1bae5f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Events/OnEntered.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.Events; 3 | 4 | namespace AlirezaTarahomi.FightingGame.Character.Event 5 | { 6 | public class OnEntered : UnityEvent { } 7 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/Events/OnEntered.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 92b98a63051c6e74fa763bce61232ec2 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Events/OnFlyingToggled.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.Events; 3 | 4 | namespace AlirezaTarahomi.FightingGame.Character.Event 5 | { 6 | public class OnFlyingToggled : UnityEvent { } 7 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/Events/OnFlyingToggled.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4f93340f5b62eb7449ce2023ad789083 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Events/OnGrounded.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.Events; 3 | 4 | namespace AlirezaTarahomi.FightingGame.Character.Event 5 | { 6 | public class OnGrounded : UnityEvent { } 7 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/Events/OnGrounded.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7463a3bf59f65c44e8c63b687ad70e94 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Events/OnPowerupEnded.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.Events; 3 | 4 | namespace AlirezaTarahomi.FightingGame.Character.Event 5 | { 6 | public class OnPowerupEnded : UnityEvent { } 7 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/Events/OnPowerupEnded.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 26250bd74b2c63d408c0cecc22f0f50d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Events/OnPowerupStarted.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.Events; 3 | 4 | namespace AlirezaTarahomi.FightingGame.Character.Event 5 | { 6 | public class OnPowerupStarted : UnityEvent { } 7 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/Events/OnPowerupStarted.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5a39bf0700f0ee9468250a18ef3238ab 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Powerups.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bab7ebdc46f163043be5637f4f7e4ab0 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Powerups/CharacterPowerupContext.cs: -------------------------------------------------------------------------------- 1 | using AlirezaTarahomi.FightingGame.Character.Event; 2 | using UniRx; 3 | using UnityEngine; 4 | 5 | namespace AlirezaTarahomi.FightingGame.Character.Powerup 6 | { 7 | public class CharacterPowerupContext 8 | { 9 | public OnPowerupStarted OnPowerupStarted { get; private set; } = new(); 10 | public OnPowerupEnded OnPowerupEnded { get; private set; } = new(); 11 | public CompositeDisposable Disposables { get; private set; } = new(); 12 | } 13 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/Powerups/CharacterPowerupContext.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3bc9722c57d79184999c782eb8405a96 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Powerups/FlyOverPowerup.cs: -------------------------------------------------------------------------------- 1 | using AlirezaTarahomi.FightingGame.Character.Behavior.Powerup; 2 | using ScriptableObjectDropdown; 3 | using UnityEngine; 4 | 5 | namespace AlirezaTarahomi.FightingGame.Character.Powerup 6 | { 7 | [CreateAssetMenu(menuName = "Custom/Powerups/FlyOverPowerup")] 8 | public class FlyOverPowerup : ScriptableObject, IPowerup 9 | { 10 | [ScriptableObjectDropdown(typeof(FlyOverAttackBehavior))] 11 | public ScriptableObjectReference _powerupAttackBehavior; 12 | public ScriptableObject PowerupAttackBehavior { get { return _powerupAttackBehavior.value; } } 13 | 14 | public float Time { get => 0; } 15 | 16 | [SerializeField] private float _cooldown = 1.0f; 17 | public float Cooldown { get => _cooldown; } 18 | 19 | public PowerupType Active() 20 | { 21 | return PowerupType.OneTime; 22 | } 23 | } 24 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/Powerups/FlyOverPowerup.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2bfc1d2f7c59e0a4eb2c8ca4ee0eb8c6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Powerups/IPowerup.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace AlirezaTarahomi.FightingGame.Character.Powerup 4 | { 5 | public interface IPowerup 6 | { 7 | ScriptableObject PowerupAttackBehavior { get; } 8 | 9 | float Time { get; } 10 | 11 | float Cooldown { get; } 12 | 13 | PowerupType Active(); 14 | } 15 | 16 | public enum PowerupType 17 | { 18 | OneTime, 19 | TimeBased 20 | } 21 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/Powerups/IPowerup.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 132ebadfe5519904a91962e41a6a0113 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/Powerups/UnlimitedThrowingObjectPowerup.cs: -------------------------------------------------------------------------------- 1 | using AlirezaTarahomi.FightingGame.General.Variable; 2 | using System.Collections; 3 | using UniRx; 4 | using UnityEngine; 5 | using VContainer; 6 | 7 | namespace AlirezaTarahomi.FightingGame.Character.Powerup 8 | { 9 | [CreateAssetMenu(menuName = "Custom/Powerups/UnlimitedThrowingObjectPowerup")] 10 | public class UnlimitedThrowingObjectPowerup : ScriptableObject, IPowerup 11 | { 12 | [SerializeField] private IntVariable _objectCounter; 13 | [SerializeField] private float _time = 2.5f; 14 | public float Time { get => _time; } 15 | [SerializeField] private float _cooldown = 1.0f; 16 | public float Cooldown { get => _cooldown; } 17 | 18 | public ScriptableObject PowerupAttackBehavior { get; } 19 | 20 | private const int INFINITE = 99999; 21 | 22 | private CharacterPowerupContext _context; 23 | private int _lastObjectNumber; 24 | 25 | [Inject] 26 | public void Construct(CharacterPowerupContext context) 27 | { 28 | _context = context; 29 | } 30 | 31 | public PowerupType Active() 32 | { 33 | _lastObjectNumber = _objectCounter.value; 34 | _objectCounter.value = INFINITE; 35 | Observable.FromCoroutine(_ => DisableTimer()).Subscribe().AddTo(_context.Disposables); 36 | return PowerupType.TimeBased; 37 | } 38 | 39 | IEnumerator DisableTimer() 40 | { 41 | yield return new WaitForSeconds(_time); 42 | _objectCounter.value = _lastObjectNumber; 43 | _context.OnPowerupEnded?.Invoke(); 44 | } 45 | } 46 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/Powerups/UnlimitedThrowingObjectPowerup.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6c1aae2142c774b4f83ab6372b05aaae 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/States.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3e86a58a0a3ccb249a717cf47cf8c467 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/States/Combat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 199d852a1e538524ba6ea46dbf0afe0e 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/States/Combat/Attack.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ac607b73775ab2a4d9c124396130750f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/States/Combat/None.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9ea7f5c879808fa41af5d0275c38a6e8 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/States/Main.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 74027d56390af1f40afee20ffc2d30f4 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/States/Main/Die.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7e729fe5b85aa254e8bff7eae50303f0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/States/Main/IMainState.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using AlirezaTarahomi.FightingGame.Character.Context; 3 | 4 | namespace AlirezaTarahomi.FightingGame.Character.State.Main 5 | { 6 | public interface IMainState 7 | { 8 | void ChangeMoveSpeed(CharacterMainStateMachineContext context); 9 | } 10 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/States/Main/IMainState.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fa7d7ea488a5a5f4fa2a449f3c2daaf1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/States/Main/Idle.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 37f220d0dc4b4f049af349cc9120a06a 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/States/Main/Move.cs: -------------------------------------------------------------------------------- 1 | using AlirezaTarahomi.FightingGame.Character.Context; 2 | using Infrastructure.StateMachine; 3 | using UnityEngine; 4 | 5 | namespace AlirezaTarahomi.FightingGame.Character.State.Main 6 | { 7 | public class Move : BaseState, IMainState 8 | { 9 | public override void Enter(CharacterMainStateMachineContext context) 10 | { 11 | ChangeMoveSpeed(context); 12 | context.AnimatorController.ToggleMoving(true); 13 | } 14 | 15 | public override void Update(float deltaTime, StateMachine stateMachine, CharacterMainStateMachineContext context) 16 | { 17 | if (context.isInjured) 18 | { 19 | stateMachine.ChangeState(this, context.RelatedStates.die, context); 20 | } 21 | 22 | if (context.moveAxesRaw.x == 0) 23 | { 24 | stateMachine.ChangeState(this, context.RelatedStates.idle, context); 25 | } 26 | } 27 | 28 | public override void FixedUpdate(float deltaTime, StateMachine stateMachine, CharacterMainStateMachineContext context) 29 | { 30 | if (!context.CanControl) 31 | return; 32 | 33 | context.LocomotionHandler.Move(context.moveAxes); 34 | } 35 | 36 | public override void LateUpdate(float deltaTime, StateMachine stateMachine, CharacterMainStateMachineContext context) 37 | { 38 | 39 | } 40 | 41 | public override void Exit(CharacterMainStateMachineContext context) 42 | { 43 | context.AnimatorController.ToggleMoving(false); 44 | } 45 | 46 | public void ChangeMoveSpeed(CharacterMainStateMachineContext context) 47 | { 48 | context.LocomotionHandler.ChangeMoveSpeed(context.CharacterContext.stats.groundMovementValues.moveSpeed); 49 | } 50 | } 51 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/States/Main/Move.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6db5159d6c522fe42bccc9fb24ae8274 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/States/SecondaryMovement.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 36cc135a385043b489218dcbbe9f4ed2 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/States/SecondaryMovement/Fall.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 106b87f5ea8317646bd91a1bf493daee 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/States/SecondaryMovement/Fly.cs: -------------------------------------------------------------------------------- 1 | using AlirezaTarahomi.FightingGame.Character.Context; 2 | using Infrastructure.StateMachine; 3 | using UnityEngine; 4 | 5 | namespace AlirezaTarahomi.FightingGame.Character.State.SecondaryMovement 6 | { 7 | public class Fly : BaseState 8 | { 9 | public override void Enter(CharacterSecondaryMovementStateMachineContext context) 10 | { 11 | context.LocomotionHandler.SetNoGravityScale(); 12 | } 13 | 14 | public override void Update(float deltaTime, StateMachine stateMachine, CharacterSecondaryMovementStateMachineContext context) 15 | { 16 | if (!context.isFlying) 17 | { 18 | stateMachine.ChangeState(this, context.RelatedStates.fall, context); 19 | } 20 | } 21 | 22 | public override void FixedUpdate(float deltaTime, StateMachine stateMachine, CharacterSecondaryMovementStateMachineContext context) 23 | { 24 | 25 | } 26 | 27 | public override void LateUpdate(float deltaTime, StateMachine stateMachine, CharacterSecondaryMovementStateMachineContext context) 28 | { 29 | 30 | } 31 | 32 | public override void Exit(CharacterSecondaryMovementStateMachineContext context) 33 | { 34 | context.LocomotionHandler.Stop(); 35 | } 36 | } 37 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/States/SecondaryMovement/Fly.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d9ca6949c27f4614fa83a1a96bd1658c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/States/SecondaryMovement/Jump.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0b7d88db69c93a74c909559cc23c0b95 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/States/SecondaryMovement/Land.cs: -------------------------------------------------------------------------------- 1 | using AlirezaTarahomi.FightingGame.Character.Context; 2 | using Infrastructure.StateMachine; 3 | using UnityEngine; 4 | 5 | namespace AlirezaTarahomi.FightingGame.Character.State.SecondaryMovement 6 | { 7 | public class Land : BaseState 8 | { 9 | public override void Enter(CharacterSecondaryMovementStateMachineContext context) 10 | { 11 | context.AnimatorController.ToggleLanding(true); 12 | } 13 | 14 | public override void Update(float deltaTime, StateMachine stateMachine, CharacterSecondaryMovementStateMachineContext context) 15 | { 16 | stateMachine.ChangeState(this, context.RelatedStates.none, context); 17 | } 18 | 19 | public override void FixedUpdate(float deltaTime, StateMachine stateMachine, CharacterSecondaryMovementStateMachineContext context) 20 | { 21 | 22 | } 23 | 24 | public override void LateUpdate(float deltaTime, StateMachine stateMachine, CharacterSecondaryMovementStateMachineContext context) 25 | { 26 | 27 | } 28 | 29 | public override void Exit(CharacterSecondaryMovementStateMachineContext context) 30 | { 31 | if (context.SurfaceCheck.OnSlope) 32 | { 33 | context.LocomotionHandler.Stop(); 34 | context.LocomotionHandler.SetNoGravityScale(); 35 | } 36 | else 37 | { 38 | context.LocomotionHandler.SetGroundGravityScale(); 39 | } 40 | context.jumpCounter = 0; 41 | context.AnimatorController.ToggleLanding(false); 42 | } 43 | } 44 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/States/SecondaryMovement/Land.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: aadcd794dc80afe4785aa9bfbb6a2068 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/States/SecondaryMovement/None.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using AlirezaTarahomi.FightingGame.Character.Context; 3 | using Infrastructure.StateMachine; 4 | 5 | namespace AlirezaTarahomi.FightingGame.Character.State.SecondaryMovement 6 | { 7 | public class None : BaseState 8 | { 9 | public override void Enter(CharacterSecondaryMovementStateMachineContext context) 10 | { 11 | context.OnChangeMoveSpeedRequested?.Invoke(); 12 | } 13 | 14 | public override void Update(float deltaTime, StateMachine stateMachine, CharacterSecondaryMovementStateMachineContext context) 15 | { 16 | if (context.isFlying) 17 | { 18 | stateMachine.ChangeState(this, context.RelatedStates.fly, context); 19 | } 20 | 21 | if (!context.CanControl) 22 | return; 23 | 24 | if (context.isJumpedPressed) 25 | { 26 | context.jumpHeight = context.CharacterContext.stats.airMovementValues.jumpHeight; 27 | stateMachine.ChangeState(this, context.RelatedStates.jump, context); 28 | } 29 | } 30 | 31 | public override void FixedUpdate(float deltaTime, StateMachine stateMachine, CharacterSecondaryMovementStateMachineContext context) 32 | { 33 | if (!context.SurfaceCheck.onGround) 34 | { 35 | stateMachine.ChangeState(this, context.RelatedStates.fall, context); 36 | } 37 | } 38 | 39 | public override void LateUpdate(float deltaTime, StateMachine stateMachine, CharacterSecondaryMovementStateMachineContext context) 40 | { 41 | 42 | } 43 | 44 | public override void Exit(CharacterSecondaryMovementStateMachineContext context) 45 | { 46 | 47 | } 48 | } 49 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/States/SecondaryMovement/None.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e5d26610733c0d64aab810d7a372085c 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/SurfaceCheck.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d2a5ee2d3ba98904ebbde8a18afd226f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 300 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Character/SurfaceEnterChecker.cs: -------------------------------------------------------------------------------- 1 | using AlirezaTarahomi.FightingGame.Character.Event; 2 | using UnityEngine; 3 | 4 | namespace AlirezaTarahomi.FightingGame.Character 5 | { 6 | public class SurfaceEnterChecker : MonoBehaviour 7 | { 8 | [SerializeField] private GameObject _movementCollider = default; 9 | 10 | public OnEntered OnEntered { get; private set; } = new(); 11 | 12 | private Collider2D _collider; 13 | private Collider2D[] _movementColliders; 14 | 15 | void Awake() 16 | { 17 | _collider = GetComponent(); 18 | _movementColliders = _movementCollider.GetComponents(); 19 | } 20 | 21 | void OnTriggerEnter2D(Collider2D collision) 22 | { 23 | ToggleCollider(false); 24 | ToggleMovementColliders(true); 25 | OnEntered.Invoke(); 26 | } 27 | 28 | public void ToggleMovementColliders(bool active) 29 | { 30 | for (int i = 0; i < _movementColliders.Length; i++) 31 | { 32 | _movementColliders[i].enabled = active; 33 | } 34 | } 35 | 36 | public void ToggleCollider(bool active) 37 | { 38 | _collider.enabled = active; 39 | } 40 | } 41 | } -------------------------------------------------------------------------------- /Assets/Scripts/Character/SurfaceEnterChecker.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e885a1041d14ec44f9c773cf59280bd3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/General.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b9daec8ad9dbf9e4eb08a38612c5c177 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/General/ServicesLifetimeScope.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using Cinemachine; 3 | using AlirezaTarahomi.FightingGame.CameraSystem; 4 | using AlirezaTarahomi.FightingGame.InputSystem; 5 | using Infrastructure.Factory; 6 | using Infrastructure.ObjectPooling; 7 | using Infrastructure.StateMachine; 8 | using VContainer; 9 | using VContainer.Unity; 10 | using MessagePipe; 11 | using AlirezaTarahomi.FightingGame.Player.Event; 12 | 13 | namespace AlirezaTarahomi.FightingGame.General 14 | { 15 | public class ServicesLifetimeScope : LifetimeScope 16 | { 17 | protected override void Configure(IContainerBuilder builder) 18 | { 19 | var options = builder.RegisterMessagePipe(); 20 | builder.RegisterBuildCallback(c => GlobalMessagePipe.SetProvider(c.AsServiceProvider())); 21 | builder.RegisterMessageBroker(options); 22 | builder.RegisterMessageBroker(options); 23 | builder.RegisterMessageBroker(options); 24 | 25 | builder.RegisterComponentInHierarchy(); 26 | builder.RegisterComponentInHierarchy(); 27 | builder.RegisterComponentInHierarchy(); 28 | builder.RegisterComponentInHierarchy(); 29 | builder.Register(Lifetime.Singleton); 30 | builder.Register(Lifetime.Singleton); 31 | builder.Register(Lifetime.Singleton); 32 | builder.Register(Lifetime.Singleton); 33 | } 34 | } 35 | } -------------------------------------------------------------------------------- /Assets/Scripts/General/ServicesLifetimeScope.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 769d308d692298649ac5e849be0692fe 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/General/Variables.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c7153bdc675e3c74db3237c69435c204 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/General/Variables/IntVariable.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | using UnityEngine.SceneManagement; 4 | 5 | namespace AlirezaTarahomi.FightingGame.General.Variable 6 | { 7 | [CreateAssetMenu(menuName = "Custom/Variables/Int")] 8 | public class IntVariable : ShareableVariable 9 | { 10 | [SerializeField] private int _defaltValue; 11 | 12 | [NonSerialized] public int value; 13 | 14 | protected override void HandleOnSceneLoaded(Scene current, LoadSceneMode mode) 15 | { 16 | value = _defaltValue; 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /Assets/Scripts/General/Variables/IntVariable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2ccfdc0557296da4c968529fbf80ceab 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/General/Variables/ShareableVariable.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.SceneManagement; 3 | 4 | namespace AlirezaTarahomi.FightingGame.General.Variable 5 | { 6 | public abstract class ShareableVariable : ScriptableObject 7 | { 8 | void OnEnable() 9 | { 10 | SceneManager.sceneLoaded += HandleOnSceneLoaded; 11 | } 12 | 13 | protected abstract void HandleOnSceneLoaded(Scene current, LoadSceneMode mode); 14 | } 15 | } -------------------------------------------------------------------------------- /Assets/Scripts/General/Variables/ShareableVariable.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: eeb038d53aa6dd744b32adc028f7d8d0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Input.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ceced16bef77c444699170aeab54d26f 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Input/InputManager.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace AlirezaTarahomi.FightingGame.InputSystem 4 | { 5 | public interface InputManager 6 | { 7 | public enum Type { Jump, Attack, PowerupAttack } 8 | 9 | bool IsPressed(string action); 10 | 11 | bool IsHeld(string action); 12 | 13 | bool IsReleased(string action); 14 | 15 | float GetAxis(string axis); 16 | 17 | float GetAxisRaw(string axis); 18 | } 19 | } -------------------------------------------------------------------------------- /Assets/Scripts/Input/InputManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 182b7c9a3d3796c48af5c4877d237fd0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Input/UnityInputManager.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace AlirezaTarahomi.FightingGame.InputSystem 4 | { 5 | public class UnityInputManager : InputManager 6 | { 7 | public bool IsPressed(string action) 8 | { 9 | return Input.GetButtonDown(action); 10 | } 11 | 12 | public bool IsHeld(string action) 13 | { 14 | return Input.GetButton(action); 15 | } 16 | 17 | public bool IsReleased(string action) 18 | { 19 | return Input.GetButtonUp(action); 20 | } 21 | 22 | public float GetAxis(string axis) 23 | { 24 | return Input.GetAxis(axis); 25 | } 26 | 27 | public float GetAxisRaw(string axis) 28 | { 29 | return Input.GetAxisRaw(axis); 30 | } 31 | } 32 | } -------------------------------------------------------------------------------- /Assets/Scripts/Input/UnityInputManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4da2316d8cfab8240b50e2faf1a16ca1 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Player.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 802945b4d058c0e489a4289c20f767c6 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Player/CharactersSwitchingHandler.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 51b485b19dbf80c438f91621edfe5f69 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Player/Events.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c1f6de9fc0ade9342997a8b7a61daa93 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Player/Events/OnAttackCooldownStarted.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | using UnityEngine; 3 | 4 | namespace AlirezaTarahomi.FightingGame.Player.Event 5 | { 6 | public class OnAttackCooldownStarted 7 | { 8 | public Type attackType; 9 | public float cooldown; 10 | 11 | public OnAttackCooldownStarted(Type attackType, float cooldown) 12 | { 13 | this.attackType = attackType; 14 | this.cooldown = cooldown; 15 | } 16 | } 17 | } -------------------------------------------------------------------------------- /Assets/Scripts/Player/Events/OnAttackCooldownStarted.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5cd3df54fe7645d46a7dcab3fbc938d0 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Player/Events/OnCharactersConfigured.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using UnityEngine.Events; 3 | 4 | namespace AlirezaTarahomi.FightingGame.Player.Event 5 | { 6 | public class OnCharactersConfigured : UnityEvent { } 7 | } -------------------------------------------------------------------------------- /Assets/Scripts/Player/Events/OnCharactersConfigured.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3e1132686a3e25047b117dd34fdd2fd4 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Player/Events/OnGameOver.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace AlirezaTarahomi.FightingGame.Player.Event 4 | { 5 | public class OnGameOver { } 6 | } -------------------------------------------------------------------------------- /Assets/Scripts/Player/Events/OnGameOver.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe1b39b52bde3d94aa3785ccd7b3527f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Player/Events/OnPowerupTimerStarted.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace AlirezaTarahomi.FightingGame.Player.Event 4 | { 5 | public class OnPowerupTimerStarted 6 | { 7 | public float duration; 8 | public float cooldown; 9 | 10 | public OnPowerupTimerStarted(float duration, float cooldown) 11 | { 12 | this.duration = duration; 13 | this.cooldown = cooldown; 14 | } 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Assets/Scripts/Player/Events/OnPowerupTimerStarted.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: b2d192486cc5a174188ac1f9847ae060 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Player/PlayerContext.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace AlirezaTarahomi.FightingGame.Player 4 | { 5 | public class PlayerContext : MonoBehaviour 6 | { 7 | public int index = 0; 8 | } 9 | } -------------------------------------------------------------------------------- /Assets/Scripts/Player/PlayerContext.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ce6261f728052f148acb98992e7fd47f 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Player/PlayerController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d1daa368901fdf542946c0695938078b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Player/PlayerLifetimeScope.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using VContainer; 3 | using VContainer.Unity; 4 | 5 | namespace AlirezaTarahomi.FightingGame.Player 6 | { 7 | public class PlayerLifetimeScope : LifetimeScope 8 | { 9 | protected override void Configure(IContainerBuilder builder) 10 | { 11 | builder.RegisterComponentInHierarchy().UnderTransform(transform); 12 | builder.Register(Lifetime.Singleton); 13 | builder.RegisterComponentInHierarchy().UnderTransform(transform); 14 | 15 | //For Injection 16 | builder.RegisterComponentInHierarchy().UnderTransform(transform); 17 | } 18 | } 19 | } -------------------------------------------------------------------------------- /Assets/Scripts/Player/PlayerLifetimeScope.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d9ba3eea1e796ff4394d59f74fb57afe 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Player/PlayersContext.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace AlirezaTarahomi.FightingGame.Player 4 | { 5 | public class PlayersContext : MonoBehaviour 6 | { 7 | public float switchingCoolDown = 3.0f; 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /Assets/Scripts/Player/PlayersContext.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6213ba35e85551b47ab8ea35d3dcaf9b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Player/PlayersLifetimeScope.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using VContainer; 3 | using VContainer.Unity; 4 | 5 | namespace AlirezaTarahomi.FightingGame.Player 6 | { 7 | public class PlayersLifetimeScope : LifetimeScope 8 | { 9 | protected override void Configure(IContainerBuilder builder) 10 | { 11 | builder.RegisterComponentInHierarchy(); 12 | } 13 | } 14 | } -------------------------------------------------------------------------------- /Assets/Scripts/Player/PlayersLifetimeScope.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 32ce963e126da5e46b188ae15d2dd519 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Player/PlayersManager.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace AlirezaTarahomi.FightingGame.Player 4 | { 5 | public class PlayersManager : MonoBehaviour 6 | { 7 | [SerializeField] private PlayerController _player1; 8 | [SerializeField] private PlayerController _player2; 9 | 10 | private bool _isAllPlayersConfigured = false; 11 | 12 | void OnEnable() 13 | { 14 | _player1.OnCharactersConfigured.AddListener(HandleOnCharactersConfigured); 15 | _player2.OnCharactersConfigured.AddListener(HandleOnCharactersConfigured); 16 | } 17 | 18 | void OnDisable() 19 | { 20 | _player1.OnCharactersConfigured.RemoveListener(HandleOnCharactersConfigured); 21 | _player2.OnCharactersConfigured.RemoveListener(HandleOnCharactersConfigured); 22 | } 23 | 24 | void Update() 25 | { 26 | UpdateSide(); 27 | } 28 | 29 | public void UpdateSide() 30 | { 31 | if (_player1.currentCharacterController.transform.position.x > _player2.currentCharacterController.transform.position.x) 32 | { 33 | _player1.Side = Side.Right; 34 | _player2.Side = Side.Left; 35 | } 36 | else 37 | { 38 | _player1.Side = Side.Left; 39 | _player2.Side = Side.Right; 40 | } 41 | } 42 | 43 | public void HandleOnCharactersConfigured() 44 | { 45 | if (_isAllPlayersConfigured) 46 | { 47 | UpdateSide(); 48 | _player1.InitCharacterFace(); 49 | _player2.InitCharacterFace(); 50 | } 51 | 52 | _isAllPlayersConfigured = true; 53 | } 54 | } 55 | 56 | public enum Side 57 | { 58 | Left = -1, 59 | Right = 1 60 | } 61 | } -------------------------------------------------------------------------------- /Assets/Scripts/Player/PlayersManager.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 513d349a19e3f7e4b84b0ce2ec85b22d 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Services.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a1ba0339156530d42a4d0915fe341a41 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Services/HitboxObjectsOwnershipService.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using UnityEngine; 3 | 4 | namespace AlirezaTarahomi.FightingGame.Service 5 | { 6 | public class HitboxObjectsOwnershipService : IOwnershipService 7 | { 8 | public List Objects { get; private set; } = new(); 9 | 10 | public void Add(GameObject GO) 11 | { 12 | Objects.Add(GO); 13 | } 14 | 15 | public void Remove(GameObject GO) 16 | { 17 | Objects.Remove(GO); 18 | } 19 | 20 | public bool Contains(GameObject GO) 21 | { 22 | if (Objects.Contains(GO)) 23 | { 24 | return true; 25 | } 26 | return false; 27 | } 28 | } 29 | } -------------------------------------------------------------------------------- /Assets/Scripts/Services/HitboxObjectsOwnershipService.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 37226a8303ba268498be5bc51ad03e77 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Services/IOwnershipService.cs: -------------------------------------------------------------------------------- 1 | using System.Collections.Generic; 2 | using UnityEngine; 3 | 4 | namespace AlirezaTarahomi.FightingGame.Service 5 | { 6 | public interface IOwnershipService 7 | { 8 | List Objects { get; } 9 | 10 | void Add(GameObject GO); 11 | void Remove(GameObject GO); 12 | bool Contains(GameObject GO); 13 | } 14 | } -------------------------------------------------------------------------------- /Assets/Scripts/Services/IOwnershipService.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f5f4628319a28844094291f31dbdebee 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Services/Tags.cs: -------------------------------------------------------------------------------- 1 | public static class Tags 2 | { 3 | public const string Untagged = "Untagged"; 4 | public const string Respawn = "Respawn"; 5 | public const string Finish = "Finish"; 6 | public const string EditorOnly = "EditorOnly"; 7 | public const string MainCamera = "MainCamera"; 8 | public const string Player = "Player"; 9 | public const string GameController = "GameController"; 10 | public const string Ground = "Ground"; 11 | public const string Platform = "Platform"; 12 | public const string Wall = "Wall"; 13 | public const string Hitbox = "Hitbox"; 14 | public const string CharactersTrigger = "CharactersTrigger"; 15 | } -------------------------------------------------------------------------------- /Assets/Scripts/Services/Tags.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ac5f6b3412510674fa6089d68b6477c6 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Tools.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 57a470861fcc17746a6470d01c8d3407 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/Tools/IThrowableObject.cs: -------------------------------------------------------------------------------- 1 | using AlirezaTarahomi.FightingGame.General.Variable; 2 | using UnityEngine; 3 | 4 | namespace AlirezaTarahomi.FightingGame.Tool 5 | { 6 | public interface IThrowableObject : ITool 7 | { 8 | bool CanPick { get; } 9 | 10 | IntVariable ObjectCounter { get; } 11 | 12 | void PrepareForPowerup(); 13 | 14 | void Throw(float force, Vector2 direction); 15 | } 16 | } -------------------------------------------------------------------------------- /Assets/Scripts/Tools/IThrowableObject.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6c841f50f6d372f4d9981b6e52c9fe08 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Tools/ITool.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace AlirezaTarahomi.FightingGame.Tool 4 | { 5 | public interface ITool 6 | { 7 | bool IsDeadly { get; } 8 | } 9 | } -------------------------------------------------------------------------------- /Assets/Scripts/Tools/ITool.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 225823f424b97c242917c2afe46fc944 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Tools/ShurikenController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cfd9e2f17390e694daba171362eefbda 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/Tools/SwordController.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | 3 | namespace AlirezaTarahomi.FightingGame.Tool 4 | { 5 | public class SwordController : MonoBehaviour, ITool 6 | { 7 | public bool IsDeadly { get; } = true; 8 | } 9 | } -------------------------------------------------------------------------------- /Assets/Scripts/Tools/SwordController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e57190c1a05c50e4da81e370eaabd64e 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/UI.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4578d0d2d756e7b4bbccfe55484e1b36 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Scripts/UI/UIGameOverPanel.cs: -------------------------------------------------------------------------------- 1 | using AlirezaTarahomi.FightingGame.Player.Event; 2 | using MessagePipe; 3 | using System; 4 | using UnityEngine; 5 | using UnityEngine.SceneManagement; 6 | using VContainer; 7 | 8 | namespace AlirezaTarahomi.FightingGame.UI 9 | { 10 | public class UIGameOverPanel : MonoBehaviour 11 | { 12 | private ISubscriber _gameOverSubscriber; 13 | 14 | private UIVisibilityController _visibilityController; 15 | private IDisposable _disposable; 16 | 17 | [Inject] 18 | public void Construct(ISubscriber gameOverSubscriber) 19 | { 20 | _gameOverSubscriber = gameOverSubscriber; 21 | } 22 | 23 | void Awake() 24 | { 25 | _visibilityController = GetComponent(); 26 | } 27 | 28 | void OnEnable() 29 | { 30 | DisposableBagBuilder bag = DisposableBag.CreateBuilder(); 31 | 32 | _gameOverSubscriber.Subscribe(Handle).AddTo(bag); 33 | 34 | _disposable = bag.Build(); 35 | } 36 | 37 | void OnDisable() 38 | { 39 | _disposable.Dispose(); 40 | } 41 | 42 | public void OnClickRestart() 43 | { 44 | SceneManager.LoadScene(0); 45 | } 46 | 47 | private void Handle(OnGameOver @event) 48 | { 49 | _visibilityController.ToggleDisplaying(true); 50 | } 51 | } 52 | } -------------------------------------------------------------------------------- /Assets/Scripts/UI/UIGameOverPanel.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bb83b16147a15d548ad8b5d2cf7aeb05 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/UI/UILifetimeScope.cs: -------------------------------------------------------------------------------- 1 | using UnityEngine; 2 | using VContainer; 3 | using VContainer.Unity; 4 | 5 | namespace AlirezaTarahomi.FightingGame.UI 6 | { 7 | public class UILifetimeScope : LifetimeScope 8 | { 9 | protected override void Configure(IContainerBuilder builder) 10 | { 11 | //For Injection 12 | builder.RegisterComponentInHierarchy(); 13 | } 14 | } 15 | } -------------------------------------------------------------------------------- /Assets/Scripts/UI/UILifetimeScope.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e89bb8478fd87ea41aa298b6c7199c7b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/UI/UIPlayerStats.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f09c538546d0c14f9c98be0f8bbb2e3 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Scripts/UI/UIVisibilityController.cs.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 77d617b6678128d4890e80e97cfb202b 3 | MonoImporter: 4 | externalObjects: {} 5 | serializedVersion: 2 6 | defaultReferences: [] 7 | executionOrder: 0 8 | icon: {instanceID: 0} 9 | userData: 10 | assetBundleName: 11 | assetBundleVariant: 12 | -------------------------------------------------------------------------------- /Assets/Sprites.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: ac06651313b2e374eb81d1875223d317 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Sprites/Atlast.spriteatlas.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6c2fff6e8e2c84e46a6e78cd2b5ac5e9 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 4343727234628468602 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Sprites/Characters.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 0b0a44d6ca3ac3d4696738d552408ea1 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Sprites/Characters/Bunny.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 5e0f6a90d57cb374eac4119d5dbfeee6 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Sprites/Characters/Bunny/Attack.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATHellboy/SampleProject-FightingGame/31ef28113ec72a7d481076cb4162e0f05a6b9930/Assets/Sprites/Characters/Bunny/Attack.png -------------------------------------------------------------------------------- /Assets/Sprites/Characters/Bunny/Die.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATHellboy/SampleProject-FightingGame/31ef28113ec72a7d481076cb4162e0f05a6b9930/Assets/Sprites/Characters/Bunny/Die.png -------------------------------------------------------------------------------- /Assets/Sprites/Characters/Bunny/Jump.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATHellboy/SampleProject-FightingGame/31ef28113ec72a7d481076cb4162e0f05a6b9930/Assets/Sprites/Characters/Bunny/Jump.png -------------------------------------------------------------------------------- /Assets/Sprites/Characters/Bunny/Stand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATHellboy/SampleProject-FightingGame/31ef28113ec72a7d481076cb4162e0f05a6b9930/Assets/Sprites/Characters/Bunny/Stand.png -------------------------------------------------------------------------------- /Assets/Sprites/Characters/Kitty.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e47d4a4378cf18142a1e2e770bba0c7c 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Sprites/Characters/Kitty/Die.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATHellboy/SampleProject-FightingGame/31ef28113ec72a7d481076cb4162e0f05a6b9930/Assets/Sprites/Characters/Kitty/Die.png -------------------------------------------------------------------------------- /Assets/Sprites/Characters/Kitty/Jump.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATHellboy/SampleProject-FightingGame/31ef28113ec72a7d481076cb4162e0f05a6b9930/Assets/Sprites/Characters/Kitty/Jump.png -------------------------------------------------------------------------------- /Assets/Sprites/Characters/Kitty/Stand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATHellboy/SampleProject-FightingGame/31ef28113ec72a7d481076cb4162e0f05a6b9930/Assets/Sprites/Characters/Kitty/Stand.png -------------------------------------------------------------------------------- /Assets/Sprites/Player1AvatarRenderTexture.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!86 &8600000 4 | CustomRenderTexture: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_Name: Player1AvatarRenderTexture 10 | m_ImageContentsHash: 11 | serializedVersion: 2 12 | Hash: 00000000000000000000000000000000 13 | m_ForcedFallbackFormat: 4 14 | m_DownscaleFallback: 0 15 | m_IsAlphaChannelOptional: 0 16 | serializedVersion: 5 17 | m_Width: 256 18 | m_Height: 256 19 | m_AntiAliasing: 1 20 | m_MipCount: -1 21 | m_DepthStencilFormat: 94 22 | m_ColorFormat: 8 23 | m_MipMap: 0 24 | m_GenerateMips: 1 25 | m_SRGB: 0 26 | m_UseDynamicScale: 0 27 | m_BindMS: 0 28 | m_EnableCompatibleFormat: 1 29 | m_TextureSettings: 30 | serializedVersion: 2 31 | m_FilterMode: 1 32 | m_Aniso: 0 33 | m_MipBias: 0 34 | m_WrapU: 1 35 | m_WrapV: 1 36 | m_WrapW: 1 37 | m_Dimension: 2 38 | m_VolumeDepth: 1 39 | m_ShadowSamplingMode: 2 40 | m_Material: {fileID: 0} 41 | m_InitSource: 0 42 | m_InitMaterial: {fileID: 0} 43 | m_InitColor: {r: 1, g: 1, b: 1, a: 1} 44 | m_InitTexture: {fileID: 0} 45 | m_UpdateMode: 0 46 | m_InitializationMode: 2 47 | m_UpdateZoneSpace: 0 48 | m_CurrentUpdateZoneSpace: 0 49 | m_UpdateZones: [] 50 | m_UpdatePeriod: 0 51 | m_ShaderPass: 0 52 | m_CubemapFaceMask: 4294967295 53 | m_DoubleBuffered: 0 54 | m_WrapUpdateZones: 0 55 | -------------------------------------------------------------------------------- /Assets/Sprites/Player1AvatarRenderTexture.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 7a1fe458dd09da045b02618fdb26d0f1 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 8600000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Sprites/Player2AvatarRenderTexture.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!86 &8600000 4 | CustomRenderTexture: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_Name: Player2AvatarRenderTexture 10 | m_ImageContentsHash: 11 | serializedVersion: 2 12 | Hash: 00000000000000000000000000000000 13 | m_ForcedFallbackFormat: 4 14 | m_DownscaleFallback: 0 15 | m_IsAlphaChannelOptional: 0 16 | serializedVersion: 5 17 | m_Width: 256 18 | m_Height: 256 19 | m_AntiAliasing: 1 20 | m_MipCount: -1 21 | m_DepthStencilFormat: 94 22 | m_ColorFormat: 8 23 | m_MipMap: 0 24 | m_GenerateMips: 1 25 | m_SRGB: 0 26 | m_UseDynamicScale: 0 27 | m_BindMS: 0 28 | m_EnableCompatibleFormat: 1 29 | m_TextureSettings: 30 | serializedVersion: 2 31 | m_FilterMode: 1 32 | m_Aniso: 0 33 | m_MipBias: 0 34 | m_WrapU: 1 35 | m_WrapV: 1 36 | m_WrapW: 1 37 | m_Dimension: 2 38 | m_VolumeDepth: 1 39 | m_ShadowSamplingMode: 2 40 | m_Material: {fileID: 0} 41 | m_InitSource: 0 42 | m_InitMaterial: {fileID: 0} 43 | m_InitColor: {r: 1, g: 1, b: 1, a: 1} 44 | m_InitTexture: {fileID: 0} 45 | m_UpdateMode: 0 46 | m_InitializationMode: 2 47 | m_UpdateZoneSpace: 0 48 | m_CurrentUpdateZoneSpace: 0 49 | m_UpdateZones: [] 50 | m_UpdatePeriod: 0 51 | m_ShaderPass: 0 52 | m_CubemapFaceMask: 4294967295 53 | m_DoubleBuffered: 0 54 | m_WrapUpdateZones: 0 55 | -------------------------------------------------------------------------------- /Assets/Sprites/Player2AvatarRenderTexture.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fc29cbb6e9288d74a9f279943ed98fe9 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 8600000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Sprites/Tools.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f45872b74e162f94087c8dd8c8d2465a 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Sprites/Tools/IllusionShuriken.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATHellboy/SampleProject-FightingGame/31ef28113ec72a7d481076cb4162e0f05a6b9930/Assets/Sprites/Tools/IllusionShuriken.png -------------------------------------------------------------------------------- /Assets/Sprites/Tools/Shuriken.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATHellboy/SampleProject-FightingGame/31ef28113ec72a7d481076cb4162e0f05a6b9930/Assets/Sprites/Tools/Shuriken.png -------------------------------------------------------------------------------- /Assets/Sprites/Tools/StuckShuriken.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATHellboy/SampleProject-FightingGame/31ef28113ec72a7d481076cb4162e0f05a6b9930/Assets/Sprites/Tools/StuckShuriken.png -------------------------------------------------------------------------------- /Assets/Sprites/World.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 92aab9243d5926049aa334a876f97c54 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Sprites/World/Slope.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATHellboy/SampleProject-FightingGame/31ef28113ec72a7d481076cb4162e0f05a6b9930/Assets/Sprites/World/Slope.png -------------------------------------------------------------------------------- /Assets/Sprites/World/Slope2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATHellboy/SampleProject-FightingGame/31ef28113ec72a7d481076cb4162e0f05a6b9930/Assets/Sprites/World/Slope2.png -------------------------------------------------------------------------------- /Assets/Sprites/World/Slope3.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATHellboy/SampleProject-FightingGame/31ef28113ec72a7d481076cb4162e0f05a6b9930/Assets/Sprites/World/Slope3.png -------------------------------------------------------------------------------- /Assets/Sprites/World/Square.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATHellboy/SampleProject-FightingGame/31ef28113ec72a7d481076cb4162e0f05a6b9930/Assets/Sprites/World/Square.png -------------------------------------------------------------------------------- /Assets/TextMesh Pro.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f54d1bd14bd3ca042bd867b519fee8cc 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Documentation.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8e7e8f5a82a3a134e91c54efd2274ea9 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Documentation/TextMesh Pro User Guide 2016.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATHellboy/SampleProject-FightingGame/31ef28113ec72a7d481076cb4162e0f05a6b9930/Assets/TextMesh Pro/Documentation/TextMesh Pro User Guide 2016.pdf -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Documentation/TextMesh Pro User Guide 2016.pdf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1b8d251f9af63b746bf2f7ffe00ebb9b 3 | DefaultImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Fonts.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6ab70aee4d56447429c680537fbf93ed 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Fonts/LiberationSans - OFL.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 6e59c59b81ab47f9b6ec5781fa725d2c 3 | timeCreated: 1484171296 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Fonts/LiberationSans.ttf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATHellboy/SampleProject-FightingGame/31ef28113ec72a7d481076cb4162e0f05a6b9930/Assets/TextMesh Pro/Fonts/LiberationSans.ttf -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Fonts/LiberationSans.ttf.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e3265ab4bf004d28a9537516768c1c75 3 | timeCreated: 1484171297 4 | licenseType: Pro 5 | TrueTypeFontImporter: 6 | serializedVersion: 2 7 | fontSize: 16 8 | forceTextureCase: -2 9 | characterSpacing: 1 10 | characterPadding: 0 11 | includeFontData: 1 12 | use2xBehaviour: 0 13 | fontNames: [] 14 | fallbackFontReferences: [] 15 | customCharacters: 16 | fontRenderingMode: 0 17 | userData: 18 | assetBundleName: 19 | assetBundleVariant: 20 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 243e06394e614e5d99fab26083b707fa 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Fonts & Materials.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 731f1baa9d144a9897cb1d341c2092b8 3 | folderAsset: yes 4 | timeCreated: 1442040525 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Drop Shadow.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e73a58f6e2794ae7b1b7e50b7fb811b0 3 | timeCreated: 1484172806 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Fallback.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2e498d1c8094910479dc3e1b768306a4 3 | timeCreated: 1484171803 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF - Outline.mat.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 79459efec17a4d00a321bdcc27bbc385 3 | timeCreated: 1484172856 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Fonts & Materials/LiberationSans SDF.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f586378b4e144a9851e7b34d9b748ee 3 | timeCreated: 1484171803 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/LineBreaking Following Characters.txt: -------------------------------------------------------------------------------- 1 | )]}〕〉》」』】〙〗〟’”⦆»ヽヾーァィゥェォッャュョヮヵヶぁぃぅぇぉっゃゅょゎゕゖㇰㇱㇲㇳㇴㇵㇶㇷㇸㇹㇺㇻㇼㇽㇾㇿ々〻‐゠–〜?!‼⁇⁈⁉・、%,.:;。!?]):;=}¢°"†‡℃〆%,. -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/LineBreaking Following Characters.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fade42e8bc714b018fac513c043d323b 3 | timeCreated: 1425440388 4 | licenseType: Store 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/LineBreaking Leading Characters.txt: -------------------------------------------------------------------------------- 1 | ([{〔〈《「『【〘〖〝‘“⦅«$—…‥〳〴〵\[({£¥"々〇〉》」$⦆¥₩ # -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/LineBreaking Leading Characters.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d82c1b31c7e74239bff1220585707d2b 3 | timeCreated: 1425440388 4 | licenseType: Store 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 99f836c9cb9345dba2e72c4a1f2d0695 3 | folderAsset: yes 4 | timeCreated: 1436068007 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_Bitmap-Custom-Atlas.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 48bb5f55d8670e349b6e614913f9d910 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_Bitmap-Mobile.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1e3b057af24249748ff873be7fafee47 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_Bitmap.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 128e987d567d4e2c824d754223b3f3b0 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF Overlay.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: dd89cf5b9246416f84610a006f916af7 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Mobile Masking.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: bc1ede39bf3643ee8e493720e4259791 3 | timeCreated: 1463704911 4 | licenseType: Pro 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Mobile Overlay.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: a02a7d8c237544f1962732b55a9aebf1 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Mobile.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: fe393ace9b354375a9cb14cdbbc28be4 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Surface-Mobile.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 85187c2149c549c5b33f0cdb02836b17 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF-Surface.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f7ada0af4f174f0694ca6a487b8f543d 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_SDF.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 68e6db2ebdc24f95958faec2be5558d6 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMP_Sprite.shader.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: cf81c85f95fe47e1a27f6ae460cf182c 3 | timeCreated: 1450517184 4 | licenseType: Pro 5 | ShaderImporter: 6 | defaultTextures: [] 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMPro.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 407bc68d299748449bbf7f48ee690f8d 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMPro_Properties.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3997e2241185407d80309a82f9148466 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Shaders/TMPro_Surface.cginc.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d930090c0cd643c7b55f19a38538c162 3 | ShaderImporter: 4 | defaultTextures: [] 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Sprite Assets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 512a49d95c0c4332bdd98131869c23c9 3 | folderAsset: yes 4 | timeCreated: 1441876896 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Sprite Assets/EmojiOne.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: c41005c129ba4d66911b75229fd70b45 3 | timeCreated: 1480316912 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Style Sheets.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 4aecb92fff08436c8303b10eab8da368 3 | folderAsset: yes 4 | timeCreated: 1441876950 5 | licenseType: Pro 6 | DefaultImporter: 7 | userData: 8 | assetBundleName: 9 | assetBundleVariant: 10 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/Style Sheets/Default Style Sheet.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: f952c082cb03451daed3ee968ac6c63e 3 | timeCreated: 1432805430 4 | licenseType: Store 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/TMP Settings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 2705215ac5b84b70bacc50632be6e391, type: 3} 13 | m_Name: TMP Settings 14 | m_EditorClassIdentifier: 15 | m_enableWordWrapping: 1 16 | m_enableKerning: 1 17 | m_enableExtraPadding: 0 18 | m_enableTintAllSprites: 0 19 | m_enableParseEscapeCharacters: 1 20 | m_EnableRaycastTarget: 1 21 | m_GetFontFeaturesAtRuntime: 1 22 | m_missingGlyphCharacter: 0 23 | m_warningsDisabled: 1 24 | m_defaultFontAsset: {fileID: 11400000, guid: 8f586378b4e144a9851e7b34d9b748ee, type: 2} 25 | m_defaultFontAssetPath: Fonts & Materials/ 26 | m_defaultFontSize: 36 27 | m_defaultAutoSizeMinRatio: 0.5 28 | m_defaultAutoSizeMaxRatio: 2 29 | m_defaultTextMeshProTextContainerSize: {x: 20, y: 5} 30 | m_defaultTextMeshProUITextContainerSize: {x: 200, y: 50} 31 | m_autoSizeTextContainer: 0 32 | m_fallbackFontAssets: [] 33 | m_matchMaterialPreset: 1 34 | m_defaultSpriteAsset: {fileID: 11400000, guid: c41005c129ba4d66911b75229fd70b45, 35 | type: 2} 36 | m_defaultSpriteAssetPath: Sprite Assets/ 37 | m_defaultColorGradientPresetsPath: Color Gradient Presets/ 38 | m_enableEmojiSupport: 1 39 | m_defaultStyleSheet: {fileID: 11400000, guid: f952c082cb03451daed3ee968ac6c63e, 40 | type: 2} 41 | m_leadingCharacters: {fileID: 4900000, guid: d82c1b31c7e74239bff1220585707d2b, type: 3} 42 | m_followingCharacters: {fileID: 4900000, guid: fade42e8bc714b018fac513c043d323b, 43 | type: 3} 44 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Resources/TMP Settings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 3f5b5dff67a942289a9defa416b206f3 3 | timeCreated: 1436653997 4 | licenseType: Pro 5 | NativeFormatImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Sprites.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: d0603b6d5186471b96c778c3949c7ce2 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Sprites/EmojiOne Attribution.txt: -------------------------------------------------------------------------------- 1 | This sample of beautiful emojis are provided by EmojiOne https://www.emojione.com/ 2 | 3 | Please visit their website to view the complete set of their emojis and review their licensing terms. -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Sprites/EmojiOne Attribution.txt.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 381dcb09d5029d14897e55f98031fca5 3 | TextScriptImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Sprites/EmojiOne.json.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8f05276190cf498a8153f6cbe761d4e6 3 | timeCreated: 1480316860 4 | licenseType: Pro 5 | TextScriptImporter: 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/TextMesh Pro/Sprites/EmojiOne.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATHellboy/SampleProject-FightingGame/31ef28113ec72a7d481076cb4162e0f05a6b9930/Assets/TextMesh Pro/Sprites/EmojiOne.png -------------------------------------------------------------------------------- /Assets/Tiles.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 2f54585a804c0b243943c3134fdf5fbf 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/Tiles/World.prefab.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 84855b7b6ca111442b3d34c9aab67c54 3 | PrefabImporter: 4 | externalObjects: {} 5 | userData: 6 | assetBundleName: 7 | assetBundleVariant: 8 | -------------------------------------------------------------------------------- /Assets/URP.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 9574b5019a0143d429935bfef80b8e6d 3 | folderAsset: yes 4 | DefaultImporter: 5 | externalObjects: {} 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/URP/Lighting Settings.lighting.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: e71df9dd85e8e4b47b892b25bca1843d 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 4890085278179872738 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/URP/URPAsset.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 1288e4750701f344b92d62cc1413a2b5 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/URP/URPAsset_Renderer.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: af3ea73c3c78dc947b249042dcdde41f 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Assets/URP/UniversalRenderPipelineGlobalSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &11400000 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 0 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 2ec995e51a6e251468d2a3fd8a686257, type: 3} 13 | m_Name: UniversalRenderPipelineGlobalSettings 14 | m_EditorClassIdentifier: 15 | k_AssetVersion: 3 16 | m_RenderingLayerNames: 17 | - Default 18 | m_ValidRenderingLayers: 1 19 | lightLayerName0: 20 | lightLayerName1: 21 | lightLayerName2: 22 | lightLayerName3: 23 | lightLayerName4: 24 | lightLayerName5: 25 | lightLayerName6: 26 | lightLayerName7: 27 | m_StripDebugVariants: 1 28 | m_StripUnusedPostProcessingVariants: 0 29 | m_StripUnusedVariants: 1 30 | m_StripUnusedLODCrossFadeVariants: 1 31 | m_StripScreenCoordOverrideVariants: 1 32 | supportRuntimeDebugDisplay: 0 33 | m_ShaderVariantLogLevel: 0 34 | m_ExportShaderVariants: 1 35 | -------------------------------------------------------------------------------- /Assets/URP/UniversalRenderPipelineGlobalSettings.asset.meta: -------------------------------------------------------------------------------- 1 | fileFormatVersion: 2 2 | guid: 8439b08b16dfc5f48bf3b9eeb48b28e8 3 | NativeFormatImporter: 4 | externalObjects: {} 5 | mainObjectFileID: 11400000 6 | userData: 7 | assetBundleName: 8 | assetBundleVariant: 9 | -------------------------------------------------------------------------------- /Docs/CharacterStateMachine.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATHellboy/SampleProject-FightingGame/31ef28113ec72a7d481076cb4162e0f05a6b9930/Docs/CharacterStateMachine.pdf -------------------------------------------------------------------------------- /Docs/CombatSystem.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATHellboy/SampleProject-FightingGame/31ef28113ec72a7d481076cb4162e0f05a6b9930/Docs/CombatSystem.pdf -------------------------------------------------------------------------------- /Docs/MessageBus.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATHellboy/SampleProject-FightingGame/31ef28113ec72a7d481076cb4162e0f05a6b9930/Docs/MessageBus.pdf -------------------------------------------------------------------------------- /Docs/ObjectPoolingSystem.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATHellboy/SampleProject-FightingGame/31ef28113ec72a7d481076cb4162e0f05a6b9930/Docs/ObjectPoolingSystem.pdf -------------------------------------------------------------------------------- /Docs/StateMachine.pdf: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/ATHellboy/SampleProject-FightingGame/31ef28113ec72a7d481076cb4162e0f05a6b9930/Docs/StateMachine.pdf -------------------------------------------------------------------------------- /Infrastructure/T4/TagsGenerator.tt: -------------------------------------------------------------------------------- 1 | <#@ template language="C#" linePragmas="false" #> 2 | <#@ parameter name="m_ClassName" type="System.String"#> 3 | <#@ parameter name="m_UnityTags" type="System.String[]"#> 4 | public static class <#= m_ClassName #> 5 | { 6 | <# 7 | // Create a public constant for each memeber in m_UnityTags. 8 | // We Also want to strip all spaces that is not valid syntax in C#. 9 | for (int i = 0; i < m_UnityTags.Length; i++) 10 | { 11 | #> 12 | public const string <#= m_UnityTags[i].Replace(" ", "") #> = "<#= m_UnityTags[i] #>"; 13 | <# 14 | } 15 | #> 16 | } -------------------------------------------------------------------------------- /LICENSE: -------------------------------------------------------------------------------- 1 | MIT License 2 | 3 | Copyright (c) 2019 Alireza Tarahomi 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /ProjectSettings/AudioManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!11 &1 4 | AudioManager: 5 | m_ObjectHideFlags: 0 6 | m_Volume: 1 7 | Rolloff Scale: 1 8 | Doppler Factor: 1 9 | Default Speaker Mode: 2 10 | m_SampleRate: 0 11 | m_DSPBufferSize: 1024 12 | m_VirtualVoiceCount: 512 13 | m_RealVoiceCount: 32 14 | m_SpatializerPlugin: 15 | m_AmbisonicDecoderPlugin: 16 | m_DisableAudio: 0 17 | m_VirtualizeEffects: 1 18 | -------------------------------------------------------------------------------- /ProjectSettings/ClusterInputManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!236 &1 4 | ClusterInputManager: 5 | m_ObjectHideFlags: 0 6 | m_Inputs: [] 7 | -------------------------------------------------------------------------------- /ProjectSettings/DynamicsManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!55 &1 4 | PhysicsManager: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 14 7 | m_Gravity: {x: 0, y: -9.81, z: 0} 8 | m_DefaultMaterial: {fileID: 0} 9 | m_BounceThreshold: 2 10 | m_DefaultMaxDepenetrationVelocity: 10 11 | m_SleepThreshold: 0.005 12 | m_DefaultContactOffset: 0.01 13 | m_DefaultSolverIterations: 6 14 | m_DefaultSolverVelocityIterations: 1 15 | m_QueriesHitBackfaces: 0 16 | m_QueriesHitTriggers: 1 17 | m_EnableAdaptiveForce: 0 18 | m_ClothInterCollisionDistance: 0 19 | m_ClothInterCollisionStiffness: 0 20 | m_ContactsGeneration: 1 21 | m_LayerCollisionMatrix: ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff 22 | m_SimulationMode: 0 23 | m_AutoSyncTransforms: 1 24 | m_ReuseCollisionCallbacks: 0 25 | m_InvokeCollisionCallbacks: 1 26 | m_ClothInterCollisionSettingsToggle: 0 27 | m_ClothGravity: {x: 0, y: -9.81, z: 0} 28 | m_ContactPairsMode: 0 29 | m_BroadphaseType: 0 30 | m_WorldBounds: 31 | m_Center: {x: 0, y: 0, z: 0} 32 | m_Extent: {x: 250, y: 250, z: 250} 33 | m_WorldSubdivisions: 8 34 | m_FrictionType: 0 35 | m_EnableEnhancedDeterminism: 0 36 | m_EnableUnifiedHeightmaps: 1 37 | m_ImprovedPatchFriction: 0 38 | m_SolverType: 0 39 | m_DefaultMaxAngularSpeed: 7 40 | -------------------------------------------------------------------------------- /ProjectSettings/EditorBuildSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1045 &1 4 | EditorBuildSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | m_Scenes: 8 | - enabled: 1 9 | path: Assets/Scenes/SampleScene.unity 10 | guid: 2cda990e2423bbf4892e6590ba056729 11 | m_configObjects: {} 12 | -------------------------------------------------------------------------------- /ProjectSettings/EditorSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!159 &1 4 | EditorSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 7 7 | m_ExternalVersionControlSupport: Visible Meta Files 8 | m_SerializationMode: 2 9 | m_LineEndingsForNewScripts: 2 10 | m_DefaultBehaviorMode: 1 11 | m_SpritePackerMode: 4 12 | m_SpritePackerPaddingPower: 1 13 | m_EtcTextureCompressorBehavior: 1 14 | m_EtcTextureFastCompressor: 1 15 | m_EtcTextureNormalCompressor: 2 16 | m_EtcTextureBestCompressor: 4 17 | m_ProjectGenerationIncludedExtensions: txt;xml;fnt;cd 18 | m_ProjectGenerationRootNamespace: 19 | m_UserGeneratedProjectSuffix: 20 | m_CollabEditorSettings: 21 | inProgressEnabled: 1 22 | -------------------------------------------------------------------------------- /ProjectSettings/MemorySettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!387306366 &1 4 | MemorySettings: 5 | m_ObjectHideFlags: 0 6 | m_EditorMemorySettings: 7 | m_MainAllocatorBlockSize: -1 8 | m_ThreadAllocatorBlockSize: -1 9 | m_MainGfxBlockSize: -1 10 | m_ThreadGfxBlockSize: -1 11 | m_CacheBlockSize: -1 12 | m_TypetreeBlockSize: -1 13 | m_ProfilerBlockSize: -1 14 | m_ProfilerEditorBlockSize: -1 15 | m_BucketAllocatorGranularity: -1 16 | m_BucketAllocatorBucketsCount: -1 17 | m_BucketAllocatorBlockSize: -1 18 | m_BucketAllocatorBlockCount: -1 19 | m_ProfilerBucketAllocatorGranularity: -1 20 | m_ProfilerBucketAllocatorBucketsCount: -1 21 | m_ProfilerBucketAllocatorBlockSize: -1 22 | m_ProfilerBucketAllocatorBlockCount: -1 23 | m_TempAllocatorSizeMain: -1 24 | m_JobTempAllocatorBlockSize: -1 25 | m_BackgroundJobTempAllocatorBlockSize: -1 26 | m_JobTempAllocatorReducedBlockSize: -1 27 | m_TempAllocatorSizeGIBakingWorker: -1 28 | m_TempAllocatorSizeNavMeshWorker: -1 29 | m_TempAllocatorSizeAudioWorker: -1 30 | m_TempAllocatorSizeCloudWorker: -1 31 | m_TempAllocatorSizeGfx: -1 32 | m_TempAllocatorSizeJobWorker: -1 33 | m_TempAllocatorSizeBackgroundWorker: -1 34 | m_TempAllocatorSizePreloadManager: -1 35 | m_PlatformMemorySettings: {} 36 | -------------------------------------------------------------------------------- /ProjectSettings/NavMeshAreas.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!126 &1 4 | NavMeshProjectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 2 7 | areas: 8 | - name: Walkable 9 | cost: 1 10 | - name: Not Walkable 11 | cost: 1 12 | - name: Jump 13 | cost: 2 14 | - name: 15 | cost: 1 16 | - name: 17 | cost: 1 18 | - name: 19 | cost: 1 20 | - name: 21 | cost: 1 22 | - name: 23 | cost: 1 24 | - name: 25 | cost: 1 26 | - name: 27 | cost: 1 28 | - name: 29 | cost: 1 30 | - name: 31 | cost: 1 32 | - name: 33 | cost: 1 34 | - name: 35 | cost: 1 36 | - name: 37 | cost: 1 38 | - name: 39 | cost: 1 40 | - name: 41 | cost: 1 42 | - name: 43 | cost: 1 44 | - name: 45 | cost: 1 46 | - name: 47 | cost: 1 48 | - name: 49 | cost: 1 50 | - name: 51 | cost: 1 52 | - name: 53 | cost: 1 54 | - name: 55 | cost: 1 56 | - name: 57 | cost: 1 58 | - name: 59 | cost: 1 60 | - name: 61 | cost: 1 62 | - name: 63 | cost: 1 64 | - name: 65 | cost: 1 66 | - name: 67 | cost: 1 68 | - name: 69 | cost: 1 70 | - name: 71 | cost: 1 72 | m_LastAgentTypeID: -887442657 73 | m_Settings: 74 | - serializedVersion: 2 75 | agentTypeID: 0 76 | agentRadius: 0.5 77 | agentHeight: 2 78 | agentSlope: 45 79 | agentClimb: 0.75 80 | ledgeDropHeight: 0 81 | maxJumpAcrossDistance: 0 82 | minRegionArea: 2 83 | manualCellSize: 0 84 | cellSize: 0.16666667 85 | manualTileSize: 0 86 | tileSize: 256 87 | accuratePlacement: 0 88 | debug: 89 | m_Flags: 0 90 | m_SettingNames: 91 | - Humanoid 92 | -------------------------------------------------------------------------------- /ProjectSettings/NetworkManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!149 &1 4 | NetworkManager: 5 | m_ObjectHideFlags: 0 6 | m_DebugLevel: 0 7 | m_Sendrate: 15 8 | m_AssetToPrefab: {} 9 | -------------------------------------------------------------------------------- /ProjectSettings/PackageManagerSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &1 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 61 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 13964, guid: 0000000000000000e000000000000000, type: 0} 13 | m_Name: 14 | m_EditorClassIdentifier: 15 | m_EnablePreReleasePackages: 0 16 | m_AdvancedSettingsExpanded: 1 17 | m_ScopedRegistriesSettingsExpanded: 1 18 | m_SeeAllPackageVersions: 0 19 | m_DismissPreviewPackagesInUse: 0 20 | oneTimeWarningShown: 0 21 | m_Registries: 22 | - m_Id: main 23 | m_Name: 24 | m_Url: https://packages.unity.com 25 | m_Scopes: [] 26 | m_IsDefault: 1 27 | m_Capabilities: 7 28 | m_ConfigSource: 0 29 | m_UserSelectedRegistryName: 30 | m_UserAddingNewScopedRegistry: 0 31 | m_RegistryInfoDraft: 32 | m_Modified: 0 33 | m_ErrorMessage: 34 | m_UserModificationsInstanceId: -860 35 | m_OriginalInstanceId: -862 36 | m_LoadAssets: 0 37 | -------------------------------------------------------------------------------- /ProjectSettings/PresetManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!1386491679 &1 4 | PresetManager: 5 | m_ObjectHideFlags: 0 6 | m_DefaultList: 7 | - type: 8 | m_NativeTypeID: 20 9 | m_ManagedTypePPtr: {fileID: 0} 10 | m_ManagedTypeFallback: 11 | defaultPresets: 12 | - m_Preset: {fileID: 2655988077585873504, guid: bfcfc320427f8224bbb7a96f3d3aebad, 13 | type: 2} 14 | -------------------------------------------------------------------------------- /ProjectSettings/ProjectVersion.txt: -------------------------------------------------------------------------------- 1 | m_EditorVersion: 2022.3.5f1 2 | m_EditorVersionWithRevision: 2022.3.5f1 (9674261d40ee) 3 | -------------------------------------------------------------------------------- /ProjectSettings/ShaderGraphSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &1 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 61 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: de02f9e1d18f588468e474319d09a723, type: 3} 13 | m_Name: 14 | m_EditorClassIdentifier: 15 | customInterpolatorErrorThreshold: 32 16 | customInterpolatorWarningThreshold: 16 17 | -------------------------------------------------------------------------------- /ProjectSettings/TagManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!78 &1 4 | TagManager: 5 | serializedVersion: 2 6 | tags: 7 | - Ground 8 | - Platform 9 | - Wall 10 | - Hitbox 11 | - CharactersTrigger 12 | layers: 13 | - Default 14 | - TransparentFX 15 | - Ignore Raycast 16 | - 17 | - Water 18 | - UI 19 | - Player1 20 | - Player2 21 | - Ground 22 | - Hurtbox 23 | - GroundDetector 24 | - MovementCollider 25 | - SurfaceEnterChecker 26 | - Hitbox 27 | - Wall 28 | - Destroyer 29 | - CharactersTrigger 30 | - 31 | - 32 | - 33 | - 34 | - 35 | - 36 | - 37 | - 38 | - 39 | - 40 | - 41 | - 42 | - 43 | - 44 | - 45 | m_SortingLayers: 46 | - name: Default 47 | uniqueID: 0 48 | locked: 0 49 | - name: Ground 50 | uniqueID: 3705349091 51 | locked: 0 52 | - name: Player 53 | uniqueID: 487128449 54 | locked: 0 55 | -------------------------------------------------------------------------------- /ProjectSettings/TimeManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!5 &1 4 | TimeManager: 5 | m_ObjectHideFlags: 0 6 | Fixed Timestep: 0.02 7 | Maximum Allowed Timestep: 0.1 8 | m_TimeScale: 1 9 | Maximum Particle Timestep: 0.03 10 | -------------------------------------------------------------------------------- /ProjectSettings/URPProjectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!114 &1 4 | MonoBehaviour: 5 | m_ObjectHideFlags: 61 6 | m_CorrespondingSourceObject: {fileID: 0} 7 | m_PrefabInstance: {fileID: 0} 8 | m_PrefabAsset: {fileID: 0} 9 | m_GameObject: {fileID: 0} 10 | m_Enabled: 1 11 | m_EditorHideFlags: 0 12 | m_Script: {fileID: 11500000, guid: 247994e1f5a72c2419c26a37e9334c01, type: 3} 13 | m_Name: 14 | m_EditorClassIdentifier: 15 | m_LastMaterialVersion: 7 16 | -------------------------------------------------------------------------------- /ProjectSettings/UnityConnectSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!310 &1 4 | UnityConnectSettings: 5 | m_ObjectHideFlags: 0 6 | serializedVersion: 1 7 | m_Enabled: 0 8 | m_TestMode: 0 9 | m_EventOldUrl: https://api.uca.cloud.unity3d.com/v1/events 10 | m_EventUrl: https://cdp.cloud.unity3d.com/v1/events 11 | m_ConfigUrl: https://config.uca.cloud.unity3d.com 12 | m_DashboardUrl: https://dashboard.unity3d.com 13 | m_TestInitMode: 0 14 | CrashReportingSettings: 15 | m_EventUrl: https://perf-events.cloud.unity3d.com 16 | m_Enabled: 0 17 | m_LogBufferSize: 10 18 | m_CaptureEditorExceptions: 1 19 | UnityPurchasingSettings: 20 | m_Enabled: 0 21 | m_TestMode: 0 22 | UnityAnalyticsSettings: 23 | m_Enabled: 0 24 | m_TestMode: 0 25 | m_InitializeOnStartup: 1 26 | m_PackageRequiringCoreStatsPresent: 0 27 | UnityAdsSettings: 28 | m_Enabled: 0 29 | m_InitializeOnStartup: 1 30 | m_TestMode: 0 31 | m_IosGameId: 32 | m_AndroidGameId: 33 | m_GameIds: {} 34 | m_GameId: 35 | PerformanceReportingSettings: 36 | m_Enabled: 0 37 | -------------------------------------------------------------------------------- /ProjectSettings/VFXManager.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!937362698 &1 4 | VFXManager: 5 | m_ObjectHideFlags: 0 6 | m_IndirectShader: {fileID: 0} 7 | m_CopyBufferShader: {fileID: 0} 8 | m_SortShader: {fileID: 0} 9 | m_RenderPipeSettingsPath: 10 | m_FixedTimeStep: 0.016666668 11 | m_MaxDeltaTime: 0.05 12 | -------------------------------------------------------------------------------- /ProjectSettings/VersionControlSettings.asset: -------------------------------------------------------------------------------- 1 | %YAML 1.1 2 | %TAG !u! tag:unity3d.com,2011: 3 | --- !u!890905787 &1 4 | VersionControlSettings: 5 | m_ObjectHideFlags: 0 6 | m_Mode: Visible Meta Files 7 | m_CollabEditorSettings: 8 | inProgressEnabled: 1 9 | -------------------------------------------------------------------------------- /ProjectSettings/XRSettings.asset: -------------------------------------------------------------------------------- 1 | { 2 | "m_SettingKeys": [ 3 | "VR Device Disabled", 4 | "VR Device User Alert" 5 | ], 6 | "m_SettingValues": [ 7 | "False", 8 | "False" 9 | ] 10 | } --------------------------------------------------------------------------------