using System.Collections; using System.Collections.Generic; using UnityEngine; using Cinemachine; public class DP : MonoBehaviour { // Start is called before the first frame update //public GameObject camera; public GameObject worldcanvas; public GameObject[] points; public GameObject point; void Start() { } private void OnEnable() { foreach (GameObject obj in points) { obj.SetActive(true); } } // Update is called once per frame void Update() { //if (Input.GetKeyDown(KeyCode.Escape) && camera.active) { // camera.GetComponent().LookAt = point.transform; // camera.GetComponent().Follow = point.transform; // camera.GetComponent().m_Orbits[0].m_Radius = 15.8f; // camera.GetComponent().m_Orbits[1].m_Radius = 15.8f; // camera.GetComponent().m_Orbits[2].m_Radius = 15.8f; //} } private void OnDisable() { foreach (GameObject obj in points) { if (obj) { obj.SetActive(false); } } } //public void changeLookAt(GameObject obj) { // camera.GetComponent().LookAt = obj.transform; // camera.GetComponent().Follow = obj.transform; // camera.GetComponent().m_Orbits[0].m_Radius = 8; // camera.GetComponent().m_Orbits[1].m_Radius = 8; // camera.GetComponent().m_Orbits[2].m_Radius = 8; //} }