Question regarding event subscription and naming convention

Hi Hugo/Gamedev staff, hope you’re doing well…

Two questions:

  1. Hugo has already answered to me that the event subscription is handled on Start() due to the way he decided to design unsubscription (Hugo’s answer), but I’m still wondering if we would have any “race condition” like the one mentioned on this specific lesson if we would have subscribed on OnEnable() instead of Start(), since OnEnable() runs before Start().

  2. Is there any reason to have two different methods with the same name? I’m talking about the TryTakeEnemyAIAction() method.

3 Likes

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms