18 lines
468 B
C#
18 lines
468 B
C#
using UnityEngine;
|
|
|
|
public abstract class Ability : ScriptableObject
|
|
{
|
|
[Header("Ability Settings")]
|
|
public string abilityName;
|
|
public string abilityKey;
|
|
public KeyCode keybind; // Key to activate the ability
|
|
public float cooldownTime; // Cooldown duration in seconds
|
|
|
|
public void ActivateAbility(GameObject owner)
|
|
{
|
|
Activate(owner);
|
|
}
|
|
|
|
protected abstract void Activate(GameObject owner); // Logic for the specific ability
|
|
}
|