Files
DougDiggem/Assets/Scripts/SceneDoor.cs
T
2026-03-05 20:26:22 -06:00

30 lines
640 B
C#

using UnityEngine;
public class SceneDoor : Interactable
{
// ID of THIS door
public int DoorId = 0;
// What scene does this door take us to?
public string SceneToLoad = "";
// Which door does this lead to in the scene this door takes us to?
public int IdOfCorrespondingDoor = 0;
public override void Interact()
{
// Do nothing
}
public override void MoveInsideRange()
{
if (!GameManager.Instance.InSceneTransition())
GameManager.Instance.EnterSceneDoor(SceneToLoad, DoorId);
}
public override void MoveOutsideRange()
{
// Do nothing
}
}