Skip to content

Make TimeSync a Unity Singleton #67

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: master
Choose a base branch
from

Conversation

LiamOverett-AMRC
Copy link

Changed how TimeSync behaves so only one instance of that object can exist in a scene at any given time. This fits with the "one source of truth" for timestamps across Unity projects. Also gave the Unity programmer the option to make the TimeSync object non-destroyable between scene changes.

Changes:

  • Update TimeSync to be a 'true' Unity singleton that will destroy itself if other instances of that object already exist in the scene
  • Add option to make a TimeSync object non-destroyable between scene changes
  • Update BaseOutlet to reference the update TimeSync singleton
  • Update the package version from 1.16.0 to 1.16.1 to reflect the changes

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.

1 participant