예제 #1
0
        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
        }
예제 #2
0
    public T Fetch()
    {
        instance = GetInstance(dependent);
        if (instance == null)
        {
            Bugger.Log($"{dependent.GetType()} {dependent} lost its {typeof(T)} {GetType()}.");
            UnityObject.Destroy(dependent);
        }

        return(instance);
    }