mirror of
https://gitea.msk.dinamika-avia.ru/Constanta-Design/MI-38.git
synced 2026-01-24 02:45:39 +03:00
24 lines
664 B
C#
24 lines
664 B
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
using UnityEngine.UI;
|
|
|
|
public class CamSystemOut : MonoBehaviour
|
|
{
|
|
public Camera Main;
|
|
public Camera CamSystem;
|
|
//public GameObject ButtonMain1;
|
|
//public GameObject ButtonMain2;
|
|
//public GameObject Button;
|
|
|
|
public void SwitchCamOut()
|
|
{
|
|
Main.enabled = true;
|
|
CamSystem.enabled = false;
|
|
GameObject.FindGameObjectWithTag("Canvas").GetComponent<Canvas>().worldCamera = Main;
|
|
//ButtonMain1.gameObject.SetActive(true);
|
|
//ButtonMain2.gameObject.SetActive(true);
|
|
//Button.gameObject.SetActive(false);
|
|
}
|
|
}
|