12345678910111213141516171819202122 |
- using System.Collections;
- using System.Collections.Generic;
- using UnityEngine;
- public class PanelCameraControl : MonoBehaviour {
- public Camera cameraToEnable, cameraToDisable;
- void OnEnable()
- {
- cameraToEnable.enabled = true;
- cameraToDisable.enabled = false;
- }
- void OnDisable()
- {
- cameraToEnable.enabled = false;
- cameraToDisable.enabled = true;
- }
-
- }
|