You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
598 B
C#

using UnityEngine;
using UnityEngine.UI;
namespace Gaia
{
public class AutoAssignTakePhotoEvent : MonoBehaviour
{
[HideInInspector]
public ScreenShotter m_screenShotter;
public Button m_buttonUI;
private void Start()
{
if (m_screenShotter == null)
{
m_screenShotter = FindObjectOfType<ScreenShotter>();
}
if (m_screenShotter != null && m_buttonUI != null)
{
m_buttonUI.onClick.AddListener(m_screenShotter.TakeHiResShot);
}
}
}
}