19 lines
474 B
C#
19 lines
474 B
C#
using UnityEngine;
|
|
using ZXKFramework;
|
|
public class VirtualCameraManager : MonoBehaviour
|
|
{
|
|
ModelChildShowOne cameraList;
|
|
public void Init()
|
|
{
|
|
cameraList = GetComponent<ModelChildShowOne>();
|
|
}
|
|
public void ShowCamera(string cameraName)
|
|
{
|
|
if(Game.Instance.operatingType == OperatingType.Touch ||
|
|
Game.Instance.operatingType == OperatingType.Hardware)
|
|
{
|
|
cameraList.ShowModel(cameraName);
|
|
}
|
|
}
|
|
}
|