Custom ObjectPickup

RobotGames

Member
I am trying to make a health pickup that doesn't have a flat amount but instead a range. I have created my own class that inherits from ObjectPickup. The issue is the inspector. It doesn't show my fields. Even when I literally copy the HealthPickup and give it a new class name the inspector doesn't show the fields. I even went so far as to add my pickup to the same namespace as the HealthPickup. Still no go. I am certain I will have the same issue when I go to deal with weapons giving a range of damage.


1156
 
OK I am a boob, but for anyone else wondering, there is an inspector for each item that I missed. I was looking at the ItemPickupInspector when I needed to create a HealthPickupRangeInspector.
 
Top