Skip to content

Adding Time.time to ConditionRepeat timeLastEventFired variable that it works well#39

Merged
CiroContnsUnity merged 1 commit intoUnity-Technologies:masterfrom
jjmiranda:master
Apr 18, 2026
Merged

Adding Time.time to ConditionRepeat timeLastEventFired variable that it works well#39
CiroContnsUnity merged 1 commit intoUnity-Technologies:masterfrom
jjmiranda:master

Conversation

@jjmiranda
Copy link
Copy Markdown
Contributor

If you have ConditionRepeat instantiated for other objects or you have multiples scenes in your game, ConditionRepeat executes immediately and not consider initial Delay because it has already passed.
Adding Time.time in the Start event solve this problem :)
Best regards and congrats for this wonderful package!

JJMiranda
Professor at Universidad de Lima - Perú

@CiroContnsUnity CiroContnsUnity self-assigned this Apr 18, 2026
@CiroContnsUnity CiroContnsUnity self-requested a review April 18, 2026 12:07
@CiroContnsUnity
Copy link
Copy Markdown
Contributor

Hi Juan José. I know 6 years have passed since your PR. I wasn't in charge of the repo at the time, but recently I got back to it and became its owner again. So I'm happy to merge this very sensible contribution.
Thanks, and sorry again for the delay.

@CiroContnsUnity CiroContnsUnity merged commit 899faab into Unity-Technologies:master Apr 18, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants