restructure script folder

This commit is contained in:
2026-03-07 14:42:14 -06:00
parent 94fa81168d
commit 1e08b70e2c
33 changed files with 40 additions and 17 deletions
@@ -0,0 +1,33 @@
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;
// transform that the character should walk towards when entering the room
// through this door
public Transform WalkDirection;
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
}
}