예제 #1
0
 public void Close()
 {
     if (dootstage == DoorStage.open || dootstage == DoorStage.opening)
     {
         dootstage = DoorStage.closing;
         dootstage = DoorStage.closed;
     }
 }
예제 #2
0
 private void Open()
 {
     if (dootstage == DoorStage.closed)
     {
         dootstage = DoorStage.opening;
         StartCoroutine("Animation_Doorhandle");
         dootstage = DoorStage.open;
     }
 }
예제 #3
0
 private void Open()
 {
     if (dootstage == DoorStage.closed)
     {
         dootstage = DoorStage.opening;
         audio_door.Play();
         StartCoroutine("Animation_DoorHandle");
         dootstage = DoorStage.open;
     }
 }
예제 #4
0
 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;
     }
 }
예제 #5
0
 public void Close()
 {
     if (dootstage == DoorStage.open || dootstage == DoorStage.opening)
     {
         dootstage = DoorStage.closing;
         //audio_door.Play();
         //StartCoroutine("Animation_Doorhandle");
         dootstage = DoorStage.closed;
     }
 }
예제 #6
0
 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;
     }
 }
예제 #7
0
 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;
     }
 }