20 lines
394 B
C#
20 lines
394 B
C#
using System;
|
|
using UnityEngine;
|
|
|
|
namespace PhotonViewDumper
|
|
{
|
|
internal class GameObject : MonoBehaviour
|
|
{
|
|
void Update()
|
|
{
|
|
try
|
|
{
|
|
if (Input.GetKeyDown(KeyCode.F6)) Plugin.Dump();
|
|
} catch (Exception ex)
|
|
{
|
|
Plugin.Log.LogError($"Failed to dump views: {ex}");
|
|
}
|
|
}
|
|
}
|
|
}
|