示例#1
0
 public void LoginSuccess()
 {
     DoorFX.Play();
     DoorOpenSound.Play();
     LoginBox.SetActive(false);
     LeftDoor.SetBool("openGate", true);
     RightDoor.SetBool("openGate", true);
     Camera.SetBool("openGate", true);
 }
示例#2
0
 public void OnLoaded()
 {
     loginshown = false;
     LeftDoor.SetBool("openGate", false);
     RightDoor.SetBool("openGate", false);
     Camera.SetBool("openGate", false);
     DoorGlow.SetBool("openGate", false);
     DoorFX.Stop();
     LoginBox.SetActive(false);
     RegisterBox.SetActive(false);
     ConnectBox.SetActive(true);
     audioSource.GetComponent <AudioFader>().Reset();
     audioSource.Play();
 }
示例#3
0
 public void OnLoaded()
 {
     if (GameManager.gameStage == GameStage.Game)
     {
         Camera.GetComponent <LoginSceneChange>().ChangeScene();
     }
     else
     {
         loginshown = false;
         LeftDoor.SetBool("openGate", false);
         RightDoor.SetBool("openGate", false);
         Camera.SetBool("openGate", false);
         DoorFX.Stop();
         LoginBox.SetActive(false);
         RegisterBox.SetActive(false);
         ConnectBox.SetActive(true);
         audioSource.GetComponent <AudioFader>().Reset();
         audioSource.Play();
     }
 }