Ejemplo n.º 1
0
        public static void Log(this WarningType type, string message, object context = null)
        {
#if UNITY_ASSERTIONS
            if (message == null || type.IsDisabled())
            {
                return;
            }

            Debug.LogWarning($"{message}\nThis message can be disabled by calling " +
                             $"{nameof(Animancer)}.{nameof(WarningType)}.{type}.{nameof(Disable)}()" +
                             " and it will automatically be compiled out of Runtime Builds (except for Development Builds).",
                             context as Object);
#endif
        }