33 lines
836 B
C#
33 lines
836 B
C#
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);
|
||
}
|
||
}
|
||
}
|