34 lines
729 B
C#
34 lines
729 B
C#
// ReSharper disable once CheckNamespace
|
|
|
|
using System;
|
|
using UnityEngine;
|
|
|
|
namespace BlueWaterProject
|
|
{
|
|
public class InShipMapInfo : MonoBehaviour
|
|
{
|
|
private GameObject usablePrisonDoor;
|
|
public Transform prisonPoint;
|
|
|
|
private void Init()
|
|
{
|
|
usablePrisonDoor = GameObject.Find("UsablePrisonDoor");
|
|
prisonPoint = GameObject.Find("PrisonPoint").transform;
|
|
}
|
|
|
|
private void Awake()
|
|
{
|
|
Init();
|
|
}
|
|
|
|
public void OpenPrisonDoor()
|
|
{
|
|
usablePrisonDoor.SetActive(false);
|
|
}
|
|
|
|
public void ClosePrisonDoor()
|
|
{
|
|
usablePrisonDoor.SetActive(true);
|
|
}
|
|
}
|
|
} |