added buttons to the inside of the elevator aswell. Started configuring firing mechanism

This commit is contained in:
2025-11-29 14:14:38 +02:00
parent 187c700f9c
commit 1727379952
7 changed files with 1611 additions and 355 deletions

View File

@@ -7,7 +7,9 @@ public class ElevatorCaller : MonoBehaviour
// Start is called before the first frame update
private void OnTriggerEnter(Collider other)
{
print(other);
SpringyButtonPhysics button = other.GetComponent<SpringyButtonPhysics>();
if (button == null) return;
else button.Pressed();
}
void Start()
{