Made the elevator button-functional. Needs some fine-tuning and audio work.
This commit is contained in:
@@ -45,12 +45,9 @@ public class ElevatorOuter : NetworkBehaviour
|
||||
}
|
||||
|
||||
}
|
||||
private void OnTriggerEnter(Collider other)
|
||||
public void CallElevator()
|
||||
{
|
||||
Debug.Log("Something entered call area");
|
||||
if (other.GetComponentInParent<XRPlayerMirror>() == null) return;
|
||||
StartCoroutine(box.callElevator(floor));
|
||||
Debug.Log("Player entered call area");
|
||||
}
|
||||
|
||||
private void OnTriggerExit(Collider other)
|
||||
|
||||
Reference in New Issue
Block a user