using System.Collections; using System.Collections.Generic; using UnityEngine; public class ConvertCamera : MonoBehaviour { public GameObject mainCamera; public GameObject AssociateCamera; public GameObject Worker; public GameObject WorkerFreeLook; // Start is called before the first frame update void Start() { } // Update is called once per frame void Update() { } public void WorkerView() { AssociateCamera.SetActive(true); Worker.SetActive(true); WorkerFreeLook.SetActive(true); mainCamera.SetActive(false); } public void CameraView() { AssociateCamera.SetActive(false); Worker.SetActive(false); WorkerFreeLook.SetActive(false); mainCamera.SetActive(true); } }