miepzerino
2025-04-02 034ed30da10c2117e9c2507ed1fef3cab43ee79c
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
using UnityEngine;
 
namespace Flexalon
{
    internal class FlexalonLog
    {
        [System.Diagnostics.Conditional("FLEXALON_LOG")]
        public static void Log(string message)
        {
            Debug.Log(message);
        }
 
        [System.Diagnostics.Conditional("FLEXALON_LOG")]
        public static void Log(string message, FlexalonNode node)
        {
            Debug.Log(message + " (" + node?.GameObject?.name + ")");
        }
 
        [System.Diagnostics.Conditional("FLEXALON_LOG")]
        public static void Log(string message, FlexalonNode node, params object[] values)
        {
            Debug.Log(message + " (" + node?.GameObject?.name + "): " + string.Join(", ", values));
        }
    }
}