← Back to all add-ons
Overview
This add-on extends the default Mythril2D combat system with three new features:
- Combo Attacks — Chain up to 3 hits for bonus damage
- Parry Mechanic — Time your block to stun enemies
- Stamina Bar — Actions consume stamina that regenerates over time
Installation
- Download the
.unitypackageusing the button above - In Unity, go to Assets → Import Package → Custom Package and select the file
- The scripts will be added to
Assets/Addons/EnhancedCombat/
Setup
Add the EnhancedCombatController component to your player GameObject:
// Replace the default combat controller
// On your Player prefab, remove CombatController and add:
[RequireComponent(typeof(EnhancedCombatController))]
public class PlayerSetup : MonoBehaviour
{
void Awake()
{
// The EnhancedCombatController auto-detects Mythril2D's combat system
GetComponent<EnhancedCombatController>().Initialize();
}
}
Configuration
In the Inspector, you can tweak:
| Parameter | Default | Description |
|---|---|---|
| Combo Window | 0.5s | Time between hits to continue combo |
| Parry Window | 0.2s | Frame window for successful parry |
| Max Stamina | 100 | Maximum stamina value |
| Stamina Regen Rate | 15/s | Stamina recovered per second |
Note: This add-on is compatible with Mythril2D 2.0 and 3.0. For version 1.0, check out the Legacy Combat Add-on.