public static void Log(string message, string color = "000000FF") { #if BUGGER Bugger.Log(string.Format("<color=\"{0}\">{1}</color>", color, message), 3); #else Debug.Log(string.Format("<color=\"{0}\">{1}</color>", color, message)); #endif }
public T Fetch() { instance = GetInstance(dependent); if (instance == null) { Bugger.Log($"{dependent.GetType()} {dependent} lost its {typeof(T)} {GetType()}."); UnityObject.Destroy(dependent); } return(instance); }