Ok so I have basic prior knolage of c# before learning unity, But i see in the code:
public class Infection : MonoBehaviour {
But I have a class called infecion base which i want the clas Infection to inherit, But how can i do this if it has to inherit mono? Thanks
You only need to inherit from MonoBehaviour on your base class, then you can let other classes inherit that class, it will still be a monobehaviour, however you will probably run into serialization issues within Unity because it will read it as the base class if it is a variable on a class. Variables belonging to your inheriting class will not show up in the editor, but will still be there.