using UnityEngine; public interface IEffect { bool IsPlaying { get; } void Play(Vector2 position); } public abstract class Effect : Entity, IEffect { public abstract bool IsPlaying { get; protected set; } public abstract void Play(); public abstract void Play(Vector2 position); }