using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using UnityEngine;
namespace Kubll
{
public class MyDebug
{
/// <summary>
/// 表示开
/// </summary>
public static bool isOn;
public static void Log(string str)
{
if (isOn)
Debug.Log(str);
}
public static void LogError(string str)
{
if (isOn)
Debug.LogError(str);
}
public static void LogWarning(string str)
{
if (isOn)
Debug.LogWarning(str);
}
}
}
1C#基础-封装
于 2023-09-07 14:38:30 首次发布