This file contains hidden or 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
| using UnityEngine; | |
| using System.Collections; | |
| namespace CameraFading | |
| { | |
| /// <summary> | |
| /// Simple class to fade camera view to a color. Must be attached to camera. | |
| /// Author: Daniel Castaño Estrella (daniel.c.estrella@gmail.com) | |
| /// Based on this example: https://docs.unity3d.com/ScriptReference/MonoBehaviour.OnPostRender.html | |
| /// |
This file contains hidden or 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 (quill18@quill18.com) | |
| /// Extended: Simon "Draugor" Wagner (https://www.twitter.com/Draugor_/) | |
| /// Extended: Daniel Castaño Estrella (daniel.c.estrella@gmail.com) | |
| /// Latest Version: https://gist.github.com/danielcestrella/b1b45999da9cec063f9c381e296693a8 | |
| /// License: CC0 (http://creativecommons.org/publicdomain/zero/1.0/) | |
| /// UPDATES: | |
| /// 2019-07-15 by Daniel Castaño Estrella: - Change Stack to Queue to avoid reuse last used prefab (useful with active despawned GameObjects); | |
| /// 2019-01-24 by Daniel Castaño Estrella: - Added possibility of delayed Despawn; |