fix:代码提交
This commit is contained in:
40
Assets/Scripts/ConvertCamera.cs
Normal file
40
Assets/Scripts/ConvertCamera.cs
Normal file
@@ -0,0 +1,40 @@
|
||||
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);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user