Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using UnityEngine;
- namespace CompositeWithScriptableObject.Abilities
- {
- using Strategies;
- public abstract class Ability : ScriptableObject, IDamageStrategy
- {
- protected abstract IDamageStrategy Strategy { get; }
- public int CalculateFinalDamage(int damage) =>
- Strategy.CalculateFinalDamage(damage);
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement