2D Roguelike tutorial error

On part 6 of 14 of the 2D Roguelike Tutorial the moving object script has the following error:

if (!canMove && hitComponent != null)
OnCantMove(hitComponent); The type arguments for method ‘MovingObject.OnCantMove(UnityEngine.Time)’ cannot be inferred from the usage. Try specifying the type arguements explicitly.

Anyone who’s done the 2D Roguelike Tutorial, what did I do wrong? I thought I did the exact same things as the video.

  • = the red bubble around errors.

You should include more of your code to be able to give you the exact error. You probably forgot the where T : Component or mixed up your definition of the OnCantMove() abstract function.

Thank you, I was able to solve it myself. At one point I accidently wrote Time instead of T. The error appeared on the peice of script above the actual problem.