NanDaEnvironmentalProtection/Assets/Scripts/Camera/CameraController.cs

33 lines
836 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityTemplateProjects;
//============================================================
//支持中文文件使用UTF-8编码
//@author YangHua
//@create 20230530
//@company Adam
//
//@description:
//============================================================
namespace Adam
{
public class CameraController : MonoBehaviour
{
public GameObject niaokanC;
public GameObject disanrenchengC;
public GameObject diyirenchengC;
public void Start()
{
OnChooseCamera(0);
}
public void OnChooseCamera(int index)
{
niaokanC.SetActive(index == 0);
disanrenchengC.SetActive(index == 1);
diyirenchengC.SetActive(index == 2);
}
}
}