Exemple #1
0
 public void openDoor()
 {
     SoundManager.PlayD_open();
     Debug.Log("open");
     if (RoomLeft)
     {
         Animator_GL.SetTrigger("Open");
         BoxCol_GL.enabled = false;
     }
     if (RoomRight)
     {
         Animator_GR.SetTrigger("Open");
         BoxCol_GR.enabled = false;
     }
     if (RoomUp)
     {
         Animator_GU.SetTrigger("Open");
         BoxCol_GU.enabled = false;
     }
     if (RoomDown)
     {
         Animator_GD.SetTrigger("Open");
         BoxCol_GD.enabled = false;
     }
 }
Exemple #2
0
 public void AE_closeDoor()
 {
     SoundManager.PlayD_close();
     if (RoomLeft)
     {
         Animator_GL.SetTrigger("Close");
     }
     if (RoomRight)
     {
         Animator_GR.SetTrigger("Close");
     }
     if (RoomUp)
     {
         Animator_GU.SetTrigger("Close");
     }
     if (RoomDown)
     {
         Animator_GD.SetTrigger("Close");
     }
 }