public override void ActivateArea() { this.enabled = true; this.PianoMenu.SetActive(true); if (this.Camera.isJustCalibrated) { this.SliderDistance.Value = 0.5f; this.SliderHeight.Value = 0.5f; this.Camera.isJustCalibrated = false; this.Camera.UpdateCameraPosition(); } this.PianoSound = new PianoSoundManager(); this.PianoSound.Initialize(); this.PianoSound.LoadSoundResource(filePathToLoad); this.ChangeKeyboardActivationState(true); }
void Start() { this.pianoSound = new PianoSoundManager(); this.keyPhysic = this.transform.GetComponent <Rigidbody>(); }