28 lines
591 B
Plaintext
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; }
|
|
}
|
|
}
|