Files
3d-bianpo/Assets/Scripts/ConvertCamera.cs
2026-03-03 11:30:53 +08:00

41 lines
827 B
C#

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);
}
}