Files
2026-02-21 16:45:37 +08:00

19 lines
453 B
C#

using UnityEngine;
public class SupportLogger : MonoBehaviour
{
public bool LogTrafficStats = true;
public void Start()
{
GameObject gameObject = GameObject.Find("PunSupportLogger");
if (gameObject == null)
{
gameObject = new GameObject("PunSupportLogger");
Object.DontDestroyOnLoad(gameObject);
SupportLogging supportLogging = gameObject.AddComponent<SupportLogging>();
supportLogging.LogTrafficStats = LogTrafficStats;
}
}
}