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
using System.Linq; | |
using UnityEngine; | |
/// <summary> | |
/// Abstract class for making reload-proof singletons out of ScriptableObjects | |
/// Returns the asset created on editor, null if there is none | |
/// Based on https://www.youtube.com/watch?v=VBA1QCoEAX4 | |
/// </summary> | |
/// <typeparam name="T">Type of the singleton</typeparam> |