21 lines
563 B
C#
21 lines
563 B
C#
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<AutoMoveCamera>();
|
|
if (autoMoveCamera != null)
|
|
{
|
|
autoMoveCamera.enabled = false;
|
|
AutoMoveCamera.schedule = 0;
|
|
}
|
|
}
|
|
}
|