Files
DeltaVR/Assets/_PROJECT/Components/Elevator/Scripts/Elevator Caller.cs

25 lines
507 B
C#

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class ElevatorCaller : MonoBehaviour
{
// Start is called before the first frame update
private void OnTriggerEnter(Collider other)
{
SpringyButtonPhysics button = other.GetComponent<SpringyButtonPhysics>();
if (button == null) return;
else button.Pressed();
}
void Start()
{
}
// Update is called once per frame
void Update()
{
}
}