This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Remove the line below if you want to inherit .editorconfig settings from higher directories | |
root = true | |
#### this file was exported via Visual Studio 2022, after configurating VS using | |
#### https://learn.microsoft.com/en-us/dotnet/csharp/fundamentals/coding-style/coding-conventions | |
#### and https://github.com/dotnet/runtime/blob/main/docs/coding-guidelines/coding-style.md | |
#### additionally it disables the basic IDExxx Analyzer to only show Roslynator ones (see section 'Analyzer configurations' to change that) | |
# C# files | |
[*.cs] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// | |
/// Simple pooling for Unity. | |
/// Author: Martin "quill18" Glaude ([email protected]) | |
/// Extended: Simon "Draugor" Wagner (https://www.twitter.com/Draugor_/) | |
/// Latest Version: https://gist.github.com/Draugor/00f2a47e5f649945fe4466dea7697024 | |
/// License: CC0 (http://creativecommons.org/publicdomain/zero/1.0/) | |
/// UPDATES: | |
/// 2020-07-09: - Fixed a Bug with already inactive members getting Despawned again. thx AndySum (see: https://gist.github.com/Draugor/00f2a47e5f649945fe4466dea7697024#gistcomment-2642441) | |
/// 2020-06-30: - made the "parent" parameter avaible in the public API to spawn GameObjects as children | |
/// 2018-01-04: - Added Extension Method for Despawn on GameObjects |