示例#1
0
    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);
    }
示例#2
0
 void Start()
 {
     this.pianoSound = new PianoSoundManager();
     this.keyPhysic  = this.transform.GetComponent <Rigidbody>();
 }