After Following the lecture on inverting dependencies using Interfaces, I have found myself stuck with an error (four times, but the same error) in the unity editor, all referencing the mention of “IAction”. VScode doesn’t seem to find any problems, but unity is stuck with these messages:
I understand what that error usually means (I forgot to mention “using (namespace)” in the script. However I followed all the directives, even watched the whole lecture again to make sure I hadn’t missed anything.
Here are my different classes and their Cancel() methods.
Mover:
Fighter:
IAction:
ActionScheduler:
Given that it’s a fairly simple error usually, I feel like I’ve missed something obvious here, but I can’t find what it is. I have tried many solutions proposed online, but nothing is working.
Thanks in advance for your support.