- Home /
delegate as animation event
I have set up a base weapon controller that contains public delegates for when the weapon is holstered/unholstered. These delegates are assigned in start by the weapon switcher. I would like to be able to call these delegates as animation events from a derived class so, for example, on the last frame of the animation, trigger an event to say it has been fully holstered. The problem is that the delegates don't show up in the inspector with the animation event selected. Is there a better way to do this than also having a public method that calls the delegate?
Answer by TheGrovesy · Aug 11, 2020 at 10:01 PM
@LEGEND383 did you ever resolve this? I'm doing something similar and had the same idea to use delegates. What did you do in the end?
Your answer

Follow this Question
Related Questions
Multiple Cars not working 1 Answer
Distribute terrain in zones 3 Answers
Executing coroutines consecutively 0 Answers
Parametrize generic event system (DRY it) 1 Answer
Keep boolean true whilst playing animation, then false 1 Answer