Just a little question on this lecture. In attempting the challenge, I used the key command:
GetComponent<ActionScheduler>().StartAction(Fighter);
in the Fighter class (with similar code for Mover, natch).
This approach gave me the red squiggle of +1 sadness. And I couldn’t figure out why. Sam uses the solution:
GetComponent<ActionScheduler>().StartAction(this);
I’d like to understand what is causing this. Fighter is a Monobehaviour, and so is the ‘this’ keyword, so I was surprised that my attempt didn’t work. Can someone 'splain?
Many thanks in advance!