WXMC/.svn/pristine/54/54e4f3473424612baf51392c82a01ca7f56296a5.svn-base
2024-12-04 16:18:46 +08:00

28 lines
591 B
Plaintext

using System;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class SystemPage : MonoBehaviour
{
public bool isDraggable = false;
public Transform cameraTarget;
[HideInInspector]
public SystemPageExit[] systemPageExits;
// Start is called before the first frame update
void Start()
{
if (!cameraTarget)
{
cameraTarget = transform;
}
}
public void SwitchAllExitColliderEnable(bool enabled)
{
foreach (var exit in systemPageExits) { exit.enabled = enabled; }
}
}