public void Close() { if (dootstage == DoorStage.open || dootstage == DoorStage.opening) { dootstage = DoorStage.closing; dootstage = DoorStage.closed; } }
private void Open() { if (dootstage == DoorStage.closed) { dootstage = DoorStage.opening; StartCoroutine("Animation_Doorhandle"); dootstage = DoorStage.open; } }
private void Open() { if (dootstage == DoorStage.closed) { dootstage = DoorStage.opening; audio_door.Play(); StartCoroutine("Animation_DoorHandle"); dootstage = DoorStage.open; } }
public void Close() { if (dootstage == DoorStage.open) { dootstage = DoorStage.closing; audio_door.Play(); StartCoroutine(Animation_DoorTwoClose(3f, new Vector3(door.transform.localPosition.x, door.transform.localPosition.y, door.transform.localPosition.z - 0.45f))); dootstage = DoorStage.closed; } }
public void Close() { if (dootstage == DoorStage.open || dootstage == DoorStage.opening) { dootstage = DoorStage.closing; //audio_door.Play(); //StartCoroutine("Animation_Doorhandle"); dootstage = DoorStage.closed; } }
private void Open() { if (dootstage == DoorStage.closed) { dootstage = DoorStage.opening; audio_doorhandle.Play(); StartCoroutine( Animation_Doorhandle(2f, doorhandle.transform.localRotation, Quaternion.Euler(doorhandle.transform.localEulerAngles.x, doorhandle.transform.localEulerAngles.y + 180f, doorhandle.transform.localEulerAngles.z))); dootstage = DoorStage.open; } }
private void Open() { if (dootstage == DoorStage.closed) { dootstage = DoorStage.opening; audio_door.Play(); StartCoroutine(Animation_Door(2f , new Vector3(door.transform.localPosition.x, door.transform.localPosition.y, door.transform.localPosition.z + 0.4f) , new Vector3(door1.transform.localPosition.x, door1.transform.localPosition.y, door1.transform.localPosition.z - 0.4f) ) ); dootstage = DoorStage.open; } }