Skip to content

Conversation

@Kiryonn
Copy link

@Kiryonn Kiryonn commented Apr 22, 2025

  • Only check and execute the unparenting if the singleton is to survive.
  • Removed "TryGetInstance" which was redundant.

Kiryonn added 2 commits April 22, 2025 10:45
This property should just return instance directly (if instance is not null return instance else return null).

But since there's already a public static getter "Instance" that does what this property is expected to return, there's no need for it.
@Kiryonn
Copy link
Author

Kiryonn commented Apr 22, 2025

For some reasons the last empty line was removed on the commit. I personally prefer when it's there.

@Kiryonn
Copy link
Author

Kiryonn commented Apr 22, 2025

Also it might be a good idea to mark the Singletons as abstract as it's not supposed to be instantiated. I haven't put it in this PR since I don't know if this is intended.

@adammyhre adammyhre force-pushed the master branch 3 times, most recently from 149bf61 to d162ee9 Compare September 15, 2025 18:35
@adammyhre adammyhre force-pushed the master branch 3 times, most recently from d3d8cd7 to af213d3 Compare November 2, 2025 16:46
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