New to unity but need help on how to get rid of this error code. Line 19 seems to be the problem, can someone direct me in the right direction, or possibly a better way to get my 2d character to do a swing attack animation properly in the game window. Thanks in advance.
GetComponent
isn’t a static method. You probably intend to do this.GetComponent
.
Also, it’s helpful to include the actual error log in future.
Thank you for the advice