public void LoginSuccess() { DoorFX.Play(); DoorOpenSound.Play(); LoginBox.SetActive(false); LeftDoor.SetBool("openGate", true); RightDoor.SetBool("openGate", true); Camera.SetBool("openGate", true); }
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(); }
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(); } }