56 lines
1.2 KiB
C#
56 lines
1.2 KiB
C#
using System.Collections;
|
|
using System.Collections.Generic;
|
|
using UnityEngine;
|
|
|
|
public class ManageDoorTrigger : MonoBehaviour
|
|
{
|
|
//public DoorDebugging[] DoorLocked;
|
|
//public DoorDebugging[] DoorUnlock;
|
|
|
|
//public bool LockDoor;
|
|
//public bool UnlockDoor;
|
|
//[Tooltip("By setting this bool to true you lock or unlock all the doors in the array")]
|
|
//public bool DoAllDoors;
|
|
|
|
//private void OnTriggerEnter(Collider col)
|
|
//{
|
|
// if (DoAllDoors)
|
|
// {
|
|
// if (LockDoor)
|
|
// {
|
|
// LockDoors();
|
|
// }
|
|
// if (UnlockDoor)
|
|
// {
|
|
// UnlockDoors();
|
|
// }
|
|
// }
|
|
//}
|
|
|
|
//private void OnTriggerExit(Collider col)
|
|
//{
|
|
|
|
//}
|
|
|
|
//public void LockDoors()
|
|
//{
|
|
// if (DoAllDoors)
|
|
// {
|
|
// foreach (DoorDebugging doorLocked in DoorLocked)
|
|
// {
|
|
// doorLocked.LockDoor();
|
|
// }
|
|
// }
|
|
//}
|
|
//public void UnlockDoors()
|
|
//{
|
|
// if (DoAllDoors)
|
|
// {
|
|
// foreach (DoorDebugging doorLocked in DoorLocked)
|
|
// {
|
|
// doorLocked.UnlockDoor();
|
|
// }
|
|
// }
|
|
//}
|
|
}
|