The Combat community component (Component) allows you to customize the default hit combo, which includes a right cross, a left hook, and a right uppercut, with a specified duration, animation, and audio for each hit. Additionally, the component enables you to add an idle status for players after they finish hitting, with a looping animation and specified duration.
|Determines the amount of attack value that a hit combo adds. Ranges from -999999 to 999999. Default: 46.
|The amount of time in seconds that an attack lasts. Ranges from 0.2 to 5. Default: 0.7.
|Determines the source of the attack animation to be played during the attack:
|Attack Pick Animation
|Choose a built-in animation clip if AnimationPicker is set to BuiltIn, or an animation clip from Asset Library or uploaded if AnimationPicker is set to Select.
|Attack Audio clip
|Choose the audio clip played during the attack
|The amount of time in seconds that the idle status lasts. Ranges from 0.2 to 5. Default: 3.
|Determines the source of the animation to be played during the idle status:
|Idle Pick Animation
|Determines the looping animation played when the player character is not in combat. You can choose from built-in clips or select/upload your own animation using the Idle AnimationPicker.
As this is a global Component, you can attach this Component to any object in the scene. However, it's a best practice to create an empty object named "GameManager" and attach this Component to it.