using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.EventSystems; public class InitializeCamera : MonoBehaviour,IPointerDownHandler { public Camera camera; // Start is called before the first frame update public void OnPointerDown(PointerEventData eventData) { AutoMoveCamera autoMoveCamera = camera.gameObject.GetComponent(); if (autoMoveCamera != null) { autoMoveCamera.enabled = false; AutoMoveCamera.schedule = 0; } } }