// ----------------------------------------------------------------------------------- // UCE_cancelDoor // ----------------------------------------------------------------------------------- public void UCE_cancelDoor() { if (UCE_selectedDoor != null) { UCE_stopTimer(); UCE_removeTask(); UCE_CastbarHide(); StopAnimation(UCE_selectedDoor.playerAnimation); UCE_selectedDoor = null; } }
protected void Cmd_UCE_checkDoorAccess(GameObject _UCE_selectedDoor) { UCE_selectedDoor = _UCE_selectedDoor.GetComponent <UCE_Doors>(); if (UCE_DoorValidation()) { Target_UCE_startDoorAccess(connectionToClient); } else { if (UCE_selectedDoor != null && UCE_selectedDoor.checkInteractionRange(this) && UCE_selectedDoor.lockedMessage != "") { UCE_ShowPrompt(UCE_selectedDoor.lockedMessage); } else { movement.Navigate(this.collider.ClosestPointOnBounds(transform.position), 0); } } }
public void UCE_OnSelect_Door(UCE_Doors _UCE_selectedDoors) { UCE_selectedDoor = _UCE_selectedDoors; movement.LookAtY(UCE_selectedDoor.gameObject.transform.position); Cmd_UCE_checkDoorAccess(UCE_selectedDoor.gameObject); }