MarkusKer
Member
Hello,
i am trying to add events to the item pickup. for example if i pickup a item i would like a number of tasks to run via the unity eventsystem. As far as i can tell it would be pretty easy executing an invoke in the "ItemPickupBase" or "ItemPickup" Scripts. Unfortunaletty i am not able to add another public variable to either of the scripts. I tried to add an serializable unity event to both of the scripts but they down show up exposed in the editor.
How would i have to declare a new variable to show up and where would i have to put it in the script?
Regards,
Markus
i am trying to add events to the item pickup. for example if i pickup a item i would like a number of tasks to run via the unity eventsystem. As far as i can tell it would be pretty easy executing an invoke in the "ItemPickupBase" or "ItemPickup" Scripts. Unfortunaletty i am not able to add another public variable to either of the scripts. I tried to add an serializable unity event to both of the scripts but they down show up exposed in the editor.
How would i have to declare a new variable to show up and where would i have to put it in the script?
Regards,
Markus