solved: restarting unity and visual studio solved the problem.
im trying to inherit a class called Enemy from another one called Frog. In order to do that i use:
public class Frog : Enemy
When i do that, i get an error saying that the type or namespace Enemy could not be found.
Even tho it says that the class is not found, im still able to get all the information, for example i override the void Start and get all the information correctly using:
protected override void Start()
My problem is that, even tho i get over 20 error messages on the class Frog, when i try it in-game i dont get any compile errors and everything works exactly as intended.
Do i just leave the errors in the code because the script works as intended or am i missing something which may lead to a mess on the future?
baseinFrog?base.Start();and then on the enemy class i just useprotected virtual void Start()