The warning :
My code :GetComponent requires that the requested component inherits from Component or MonoBehaviour.
- this.anim = (IAnimationHandler)this.GetComponent(typeof(IAnimationHandler));
The objects that implement this interface always extend MonoBehaviour.
It all works, I just get this annoying warning. I completely get why it's there, but I wonder if there's a workaround so the warning doesn't appear.